What is: NodeJS

NodeJS is a free, open source, cross-platform server environment, that executes JavaScript code outside of a browser. You can run scripts on the server-side to produce dynamic content before the page is sent to the user’s browser. NodeJS has many built-in modules, you can collect form data, manage database, handle files and many more. It’s also perfect for event-driven applications. With NodeJS, a developer can use a single programming language instead of using different ones for server side and client side.

It’s capable of single-threaded, non-blocking, asynchronous I/O, which means it can handle different requests simultaneously. For example, when a file request happens, PHP does one thing at a time and it waits for each process to finish: send task to the filesystem, wait while it reads the file, return content to client, go to the next task. Contrarily, NodeJs eliminates the waiting and handles the next request while the previous one is running.

You can work with NodeJS via command line.

Recent articles