O'Reilly logo

HTML, CSS and JavaScript All in One, Sams Teach Yourself: Covering HTML5, CSS3, and jQuery, Second Edition by Julie C. Meloni

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 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. ...

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