NodeJS / NodeJS Hello world Program

Program Name

Write a NodeJS Hello world Program.
Theory
This program display helloworld in Nodejs.
Program Code


Input
No Inputs for the program.
Output
Hello World!
Compiling and Running
1. Open terminal and change the drive to code folder.
2. compiling: node  helloworld.js
3. Running: open browser and type
http://localhost:8080/
4. See the output
Explanation
HTTP module used transfer data using Hyper Text Transfer Protocol (HTTP). HTTP server response is displayed as HTML and included in HTTP header with a content type.


Home     Back