Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

9. JavaScript: FunctionsĀ >Ā 9.8. JavaScript Global Functions

9.8. JavaScript Global Functions

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.

Image

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:


Ā Ā 

You are currently reading a PREVIEW of this book.

Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā Ā 

Get instant access to over
$1 million worth of books and videos.

Ā Ā 

Start a Free Trial


Ā Ā