To run a Node.js program, write in the Node.js command prompt:
node fileName.js
A breakpoint is a specific line in your code where you want the debugger to pause. It’s useful for inspecting variables and tracing logic.
A module is a reusable block of code that is isolated from other code to avoid accidental interference.
JavaScript uses a standard called CommonJS to define how modules should be structured (e.g., using require
and exports
).
JavaScript treats functions as first-class citizens, meaning: