# Your First Node.js Program

Run a JavaScript file with the node command, try lines one at a time in the REPL, rerun a file on every save with node --watch, read an error and its stack trace, and see what Node has that a browser doesn't.

![Cheat sheet: Your First Node.js Program](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/fc27b01982484790bb8fd8252efa142b.webp)

- Category: Node.js
- Level: Novice
- Tags: console.log in Node, JavaScript, node Command, nodejs, nodemon and --watch, REPL (nodejs), Stack Trace (javascript)
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/node-first-program-cheat-sheet
