O'Reilly logo

JavaScript Programmer's Reference by Jonathan Reid, Thomas Valentine

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 5

image

JavaScript Global Objects Reference

Since one of the basic features of JavaScript is prototypal inheritance, it has no base classes for things like arrays or strings. Instead, JavaScript has a set of base objects from which other objects of the same type can inherit their properties and methods. These base objects reside in the global scope (which in the browser is the window object) and can thus be accessed at any time.

This chapter provides a reference for the major JavaScript global objects Array, Boolean, Date, Number, RegExp, and String. It also includes documentation for the Math object, which, unlike the other objects, does not ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required