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

How to make a html5 breakout game in JavaScript

How to set content disposition headers for express nodejs apps

Ways of iterating Object properties in JavaScript

How to evaluate a string on a regular expression rule in JavaScript

JavaScript math constants