For learning node, it is recommended that you install it on your system. For installing node, open your browser and navigate to https://nodejs.org.
This page will look like this.
It will show you two versions, the latest stable version and the current version. Current version will always be greater than the stable version.
Always download the latest stable version since it is properly tested and working.
If you are on Windows, click the latest stable version and it will automatically start downloading the installer.
If you are on Linux or Mac, then click on Other Downloads link just below the latest stable release link and download the installer as per your operating system.
Once the installer is downloaded, run it and follow installation instructions.
Checking node installation
Once node is installed, you can check whether it was properly installed or not.
On Windows, open command prompt and on Linux/Mac open terminal and type
This will display the version of node that is installed on your machine.
If node is installed on your system, it will show you something like this.
In the next section, we shall write a program on node and see how to execute it.0