NodeJS / NodeJS Modules

Nodejs Modules are JavaScript libraries consists of set of functions.

Modules Usage
To use a module it requires require () function.

Program Name

Write a Program for NodeJS Modules.
Theory
Program for NodeJS Modules
Program Code


Input
No Inputs.
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


Creating own Modules
Program Name

Write a Program for Creating own Modules.
Theory
Program for NodeJS Modules
Program Code


Input
No Inputs.
Output
Current Date and time: Fri Jan 21 2022 22:39:37 GMT+0500 (West Kazakhstan Time)
Compiling and Running
Node Nodeexample.js




Home     Back