Chapter 17. Using JavaScript Functions and Objects

What You’ll Learn in This Chapter:

How to define and call functions

How to return values from functions

How to define custom objects

How to use object properties and values

How to define and use object methods

How to use objects to store data and related functions

How to use the Math object’s methods

How to use with to work with objects

How to use the Date object to work with dates

In this chapter, you’ll learn about two more key JavaScript concepts that you’ll use throughout the rest of this book (and in your future JavaScript endeavors). First, you’ll learn the details of creating and using functions, which enable you to group any number of statements into a single block. ...

Get HTML, CSS and JavaScript All in One, Sams Teach Yourself: Covering HTML5, CSS3, and jQuery, 2nd 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.