Node JS is a runtime environment built on Chrome’s V8 engine.
It is is very efficient in communication. Its great with WebSocket communication.
Write data validation only once( DRY Rule )
Because you can write your JS code both for front end and for the server, you can do the data validation only one.
How does Node work?
JS engine does not have any concept of I/O.
Please not that when you do
console.log in your browser, the browser and the developer tools have provided an I/O hook. that allows that
console.log to work.
Node does a similar thing. Node has taken the I/O ( Input Output stream ). Its given you a binding from its lower level C layer into the JS so that when we do console.log in node we can actually see something printing to the screen.