After installing, move to the terminal and enter node -v
. If installed correctly, the version will be displayed.
$ node -v
v12.15.0
Here, create a file called hello.js
and write the following:
console.log('Hello JavaScript')
Then, run this hello.js
file in the terminal.
$ node hello.js
Hello JavaScript
Success!