DEV Community

Akshat Sharma
Akshat Sharma

Posted on

5 1 1 1 1

Day 2 of NodeJS || Get Started

Hey reader👋Hope you are doing well😊
In the last post we have discussed about Introduction to NodeJS. In this post we are going to see how to use NodeJS.
So let's get started🔥

Installation

The official Node.js website has installation instructions for Node.js: [https://nodejs.org].

Get Started

Once you have downloaded the NodeJS. Let's check the version of NodeJS.

  • Step 1-> Open VS Code

  • Step 2-> Open Terminal

  • Step 3-> Type command node -v in terminal to check node version
    You will get the version of NodeJS.

Now let's print Hello World using NodeJS-:

  • Step 1-> Create script.js file.

  • Step 2-> Write code.
    Image description
    Don't go into technicalities of code right now. Just understand that here we have created a server that can be accessed on port 8080 and whenever any user tries to access your computer on port 8080 a "Hello World" statement is printed.
    Image description
    It was this simple😉

Instead of using VSCode you can use CLI or Node CLI too.
So this is how you can get started with NodeJS. In the next blog we are going to talk about Modules in NodeJS.
Thankyou🤍

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

Cloudinary image

Optimize, customize, deliver, manage and analyze your images.

Remove background in all your web images at the same time, use outpainting to expand images with matching content, remove objects via open-set object detection and fill, recolor, crop, resize... Discover these and hundreds more ways to manage your web images and videos on a scale.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay