What is the root object in Node.js What is the root object in Node.js javascript javascript

What is the root object in Node.js


It is exactly the same as global.

There are a few undocumented properties like this. They date from early days of node but were left in to maintain backwards-compatibility and there is no pressing need to remove them.

You shouldn't use them in any new code, as they could be removed at any future time.