Let’s write some code.

1.lets start By installing Node.js on your system:

https://nodejs.org/en

image.png

**2. Verify installed correctly or node by writing command on terminal

node ~v**

The command node -v is used to check the installed version of Node.js. If Node.js is not installed, this command will produce an error indicating that the node command is not recognized or not found

npm ~v

The command npm -v displays the version of NPM (Node Package Manager) that is currently installed on your system.

3.Writing code

image.png

→ You can now write and execute any code on REPL (Read-Evaluate-Print Loop).

image.png