Node.js · Junior · Question 5 of 75
What is the name of the global object in Node.js?
- ✓Correct answer:
global(and the standardglobalThis) - 2
selfonly - 3
window
Explanation
globalThis is the standard name that works in every environment. In Node.js it points to global; in browsers it points to window.