What are global objects in Node.js?
Global objects are available in all modules without the need to import them. Examples
include:
- __dirname: Directory name of the current module
- __filename: Full path of the current module
- global: Similar to window in browsers
- process: Provides info about the current Node.js process
- setTimeout, setInterval, etc.