Sunday 30 September 2018

Node.js Hello World Application

hello-world.js
/* Hello World! program in Node.js */
console.log("Hello World!");

Execute the statement ‘node hello-world.js’

C:\>node hello-world.js
Hello World!

Note
In Node.js, it is considered as good style to use hyphens (-) or underscores (_) to separate multiple words in filenames.



Previous                                                 Next                                                 Home

No comments:

Post a Comment