NodeJS is an open source platform to create a Runtime environment it provides event driven, non blocking (asynchronous), cross platform, Runtime environment for building highly scalable web applications using JavaScript.
Why to learn NodeJS?
- Easy Scalability
- Real time web apps
- Fast & Secure
- Easy to learn
- Easy to Caching
- Data Streaming
- Hosting
- Corporate Support
How to Run NodeJS?
First thing we need to install nodeJS in a system then use the following command to run your application.
index.js
// Accessing console module
const console = require('console');
// Calling console.info() method
console.info("Hello World!");
command to run your application
node index.js
output:
Hello World! |
Thanks, May this example help you.