Let's write our first node app.
Initialize
Initialize the project
in the normal way
.
>npm init
Code
Create file "hello-world.js" with content shown.
//hello-world.js
console.log('Hello World');
📋
Run
Run the command shown
>node hello-world
Hello World
📋
Introduction To Node.js (Chapter 302 - First)
<
First Node App
>
Search Site
Home
Back To Top