how to install node on windows code example

Example 1: find node version

node -v

OR

node --version

Example 2: install node using nvm windows

First install NVM - https://stackoverflow.com/questions/25654234/node-version-manager-nvm-on-windows -2.nd answer
nvm install latest
nvm use 15.4.0 [instead of 15.4.0 use whatever number cmd spills on you]

Example 3: windows install node and npm

npm init to start a new project
nodejs.org/download to download node.js

Example 4: nodejs install

var http = require('http');

http.createServer(function (req, res) {
    res.writeHead(200, {'Content-Type': 'text/html'});
    res.end('Hello World!');
}).listen(8080);