Mid From PDF Node.js Node.js

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.

More from Node.js Tutorial

All questions for this course
Toolliyo Assistant
Ask about tutorials, ebooks, training, pricing, mentor services, and support. I use public site content only—not admin or internal tools.

care@toolliyo.com

Need callback? Share your details