NodeJS - Creating your first NodeJS Hello World app on Linux
by
Jeremy Canfield |
Updated: March 23 2024
| NodeJS articles
If you have not yet installed NodeJS, check out my article Install NodeJS on Linux.
Let's use the which command to determine if the NodeJS node CLI is in your $PATH.
~]$ which node
/usr/bin/node
Create a file named app.js that contains the following console.log.
console.log("Hello World");
Use the node CLI to run app.js and "Hello World" should be displayed.
~]$ node app.js
Hello World
Did you find this article helpful?
If so, consider buying me a coffee over at