Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
JavaScript provides nine standard global functions. Weāve already used parseInt, parseFloat and isFinite. Some of the global functions are summarized in Fig. 9.10.
Fig. 9.10. JavaScript global functions.
The global functions in Fig. 9.10 are all part of JavaScriptās Global object. The Global object contains all the global variables in the script, all the user-defined functions in the script and all the functions listed in Fig. 9.10. Because global functions and user-defined functions are part of the Global object, some JavaScript programmers refer to these functions as methods. You do not need to use the Global object directlyāJavaScript references it for you. For information on JavaScriptās other global functions, see Section 15.1.2 of the ECMAScript Specification: