Chapter 12
Math, Number, and Date Objects
Key Skills & Concepts
    Using the Math Object
    Understanding the Number Object
    Using the Date Object
image
In this chapter, you will learn about the JavaScript Math, Number, and Date objects, in that order. For each object, a short introduction is provided along with a description of why the object can be useful to you. Following that is a look at the various properties and methods that you can use for that object.
Using the Math Object
The Math object can be useful when you need to perform various calculations in your scripts. To begin, take a look at what the Math object is.
What Is the Math Object? ...

Get JavaScript: A Beginner's Guide, Fourth Edition, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.