what is a node 1

what is a node

Node.js is an open-source server side runtime environment built on 
Chrome's V8 JavaScript engine. It provides an event driven, non-blocking 
(asynchronous) I/O and cross-platform runtime environment for building
highly scalable server-side applications using JavaScript.

Here is what the above code is Doing:
1. We are importing the ‘http’ module.
2. We are creating a server using http.createServer() method.
3. We are listening on the port 8080 using server.listen() method.
4. We are printing some message on the console using console.log().
5. We are sending a message to the client using response.end() method.

Similar Posts