Node.js v18.12.1 documentation


Table of contents

Global objects全局对象#

These objects are available in all modules. 这些对象在所有模块中都可用。The following variables may appear to be global but are not. 以下变量可能是全局变量,但不是全局变量。They exist only in the scope of modules, see the module system documentation:它们仅存在于模块范围内,请参阅模块系统文档

The objects listed here are specific to Node.js. 这里列出的对象特定于Node.js。There are built-in objects that are part of the JavaScript language itself, which are also globally accessible.内置对象是JavaScript语言本身的一部分,也可以全局访问。