▶️ Running Node.js Programs

To run a Node.js program, write in the Node.js command prompt:

node fileName.js

🐞 What is a Breakpoint?

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.


🌱 Node.js Versions – LTS vs Current


📦 What Are Modules in JavaScript?

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).


🧠 First-Class Functions in JavaScript

JavaScript treats functions as first-class citizens, meaning: