Getting Started
Let’s create a simple application to print “hello world” on console.
Let’s create a filename “firstApp.js” with below content.
console.log("hello world") // save the file as firstApp.js
To execute / Run this application use node
Here console.log() function displays messages on console.
Below screenshot shows outcome of the program:
node firstapplication.js