O'Reilly logo

Inside JavaScript by Steven Holzner

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 19. The Math, Number, Boolean, and Array Objects

The Math, Number, Boolean, and Array Objects

In this chapter, we’ll take a look at the Math, Number, Boolean, and Array JavaScript objects. Except for the Boolean object, we’ve seen all these objects already, but we’ve never taken a systematic look at them and listed all their properties and methods. We’ll do that in this chapter, starting with the Math object.

The Math Object

The Math object gives you access to powerful math routines, such as log, sqrt, and pow (which raises values to various powers). We’ve already seen the Math object in the book every now and then when we had to round off numbers or find absolute values. You can see ...

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