Node.js is an open-source software that is available for free download on the Node.js download page.
For example, to install Node.js LTS (v12.x) on Ubuntu, you can run the following commands:
curl -sL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install -y nodejs
Running a JavaScript application with Node.js is quite simple. Let's create a file called index.js with the following content:
console.log('Hello World');
Save the file and run the following command in the command line:
node index.js
Output:
Hello World
5 profound lessons
Every product comes with stories. The success of others is an inspiration for many to follow. 5 lessons learned have changed me forever. How about you? Click now!
Subscribe to receive new article notifications
Hello, my name is Hoai - a developer who tells stories through writing ✍️ and creating products 🚀. With many years of programming experience, I have contributed to various products that bring value to users at my workplace as well as to myself. My hobbies include reading, writing, and researching... I created this blog with the mission of delivering quality articles to the readers of 2coffee.dev.Follow me through these channels LinkedIn, Facebook, Instagram, Telegram.
Comments (1)