In this publication, I will show you how to create a program using node.js.
But first, it is necessary to install this software. To this end, access this link (https://nodejs.org/en/download/), download the Latest LTS Version and install the software.
Note: I advise you to install it in the “C:\Program Files\nodejs” directory.
Note: I also advise installing Visual Studio Code. With this editor, it is much easier to program and more practical.
After that, it’s time to do the first program using the famous “Hello World”.
- Step 1: Create a file named Hello.js;
- Step 2: Enter the following line of code:
- Step 3: Save the file and go to the command line using the following command:
The result of the problem is going to be this:
I hope you enjoyed!!