Start a simple ‘HTTP server’ in NodeJS.

Node.js uses an event-driven, non-blocking model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices. This simple web server written in Node responds with “Hello World” for every request.

To run the server, put the code into a file example.js and execute it with the node program from the command line.