Skip to main content

Sixth Day with fullstack development --> Play Node Js CMD Command.

 Installing Node Js

Download Acc. to suitable Environment

https://nodejs.org/en/download/

Use CMD:- type "node"

Node js REPL:-

Use Cmd to know about commands like global, process

.exit --> used to come out of repl.

https://nodejs.org/dist/latest-v14.x/docs/api/ --> Documentation 

basic of node js

require('fs'); -->define the filesystem as constant

process.argv[2] --> read command from the cmd by process, argv[2] get the string in array

fs.mkdirSync(filename);->create folder without callback
    fs.writeFileSync(`${filename}/index.html`'') --> create a file





Comments