First Node.js Program — 5/55 in the Node.js series. Full playlist companion: Node.js complete course on YouTube. Prefer one article? Read the complete Node.js tutorial.
Short description
Create a `.js` file, write JavaScript, and run it with `node filename.js`. No browser is required.
Steps
- Create
app.js. - Add a simple console message.
- Run it with Node from the terminal.
app.js
const name = 'Imtiyaj';
console.log(`Hello, ${name}! Welcome to Node.js`);
// Run: node app.js