Skip to content
Related Articles
Open in App
Not now

Related Articles

Node.js Globals Complete Reference

Improve Article
Save Article
  • Last Updated : 05 Dec, 2022
Improve Article
Save Article

Node.js Global Objects are the objects that are available in all modules. Global Objects are built-in objects that are part of the JavaScript and can be used directly in the application without importing any particular module.

Example:  It repeats the execution of the callback after every t time in milliseconds passed as a parameter.


// Executed after every 1000 milliseconds
// from the start of the program
setInterval(function A() {
    return console.log('Hello World!');
}, 1000);
// Executed right away
console.log('Executed before A...');


Executed before A...
Hello World!
Hello World!
Hello World!
Hello World!
Hello World!

The Complete list of NodeJS Global objects are listed below:

Node.js Globals


Class: BufferBuffers are designed to handle binary raw data. Buffers allocate raw memory outside the V8 heap.
Node.js Timers moduleThe Timers module in Node.js contains various functions that allow us to execute a block of code
NodeJS consoleNode.js console module is a global object that provides a simple debugging console
NodeJS imports and exportsNode.js also allows importing and exporting functions and modules.
NodeJS globalNode.js Global Objects are the objects that are available in all modules.
NodeJS moduleThe module.exports in Node.js is used to export any literal, function or object as a module. 
NodeJS URLThe ‘url’ module provides utilities for URL resolution and parsing.
NodeJS URLSearchParamsThe URLSearchParams API in Node.js allows read and write operations on the URL query.
My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!