DEV Community

Cover image for first node app.
Kunal Agrawal
Kunal Agrawal

Posted on

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)