Globals

Learn how globals work in Node.js.

We'll cover the following

Everywhere

Global objects, or simply globals, are available in every module. This allows them to be used without importing a specific module. Modules like fs and events need to be imported; however, some objects, like buffer, did not need to be imported. The Buffer class is defined as a global in Node.js.

svg viewer

Get hands-on with 1200+ tech skills courses.