search

Home  >  Q&A  >  body text

What is node.js used for?

I don’t quite understand what node.js is used for



正念的奇迹正念的奇迹2731 days ago1983

reply all(2)I'll reply

  • 天蓬老师

    天蓬老师2017-07-07 16:46:17

    Everyone who studies PHP knows that using an integrated environment can greatly simplify environment configuration and quickly develop web projects.

    Node.js is a package of JavaScript runtime environment. It takes the V8 engine of Chrome browser as its core and provides a complete solution for web projects from front-end to back-end. In just 10 lines of code, you can create a web server and run it in a browser window, which is pretty awesome;

    We know that PHP programs can be run on the command line using PHP commands. What about js files? Can it be run using a command? That's fine if you have Node.js installed. For example, if you have: my.js, you can use: node my.js to run it without having to run it in the browser.

    We use Node.js, largely because of its large number of application packages. Many applications developed on Node.js have greatly enriched the customer experience.

    Just use; npm install installation command to install your favorite plug-in package. For example Browser-sync

    reply
    4
  • 123

    1232017-07-07 16:42:45

    I don’t know, it’s a rare deal

    reply
    0
  • Cancelreply