Q1: What is the global object in Node.js?
The global object is the top-level namespace in Node.js, providing built-in functions, variables, and objects (such as setTimeout, console, and Buffer) across all modules.
Key Takeaways
- Provides globally accessible built-in properties and methods.
- Equivalent to
windowin browser JavaScript environments.
Knowledge Check
What is the unified cross-platform global object reference introduced in modern JS?