hello world application in nodejs

Nodejs is a JavaScript command line runtime using chromes v8 engine known for its wicked fast speed and execution time. its well known that  the v8 engine compiles JavaScript to archive its impressive performance.
Nodejs is a command line application ie the output will be forwarded to the console in our case the terminal of your shell.
In your terminal or text editor type
console.log("Hello World")
save the file simply as helloworld.js
In your terminal type node helloworld.js
Output // Hello World
// Hooray You dit it.

Comments

Popular posts from this blog

JavaScript math methods

How to make a Snake Game using JavaScript and html5

JavaScript math constants

How to draw clouds on HTML5 Canvas

How to create zip archives in nodejs