The Global Object

  The global object is a regular JavaScript object that serves a very important purpose: the properties of this object are the globally defined symbols that are available to a JavaScript program. 

When the JavaScript interpreter starts (or whenever a web browser loads a new page), it creates a new global object and gives it an initial set of properties that define:

• global properties like undefined, Infinity, and NaN
• global functions like isNaN(), parseInt() (§3.8.2), and eval() (§4.12).
• constructor functions like Date(), RegExp(), String(), Object(), and Array()
(§3.8.2)
• global objects like Math and JSON (§6.9) 

a few other globals that are specific to web browsers and client-side JavaScript.

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-04
  • 2021-09-12
猜你喜欢
  • 2021-07-11
  • 2021-12-18
  • 2021-10-24
  • 2022-12-23
  • 2022-12-23
  • 2022-01-05
相关资源
相似解决方案