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
Me & the desire to "play with words"
Have you tried writing? And then failed or not satisfied? At 2coffee.dev we have had a hard time with writing. Don't be discouraged, because now we have a way to help you. Click to become a member now!
Subscribe to receive new article notifications
Comments (1)