DEV Community

Cover image for first node app.
Kunal Agrawal
Kunal Agrawal

Posted on

5 2

first node app.

Learn how to use Node.js

  1. Install Node.js from here, for your system.
  2. Create a .js file ${name}.js.
  3. Copy, paste this code.
console.log("Hello World");
Enter fullscreen mode Exit fullscreen mode
  1. Open terminal, in that location.
  2. Run the file using.
node ${name}.js
Enter fullscreen mode Exit fullscreen mode

And that's it, you had just Node.js to run JavaScript outside browser. 😀😀

Top comments (0)

👋 Kindness is contagious

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

Okay