O'Reilly logo

Sams Teach Yourself HTML, CSS and JavaScript All in One 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. First, you’ll learn the details of using functions, which enable you to group any number of statements into a block. This is useful for repeating sections of code, and you can ...

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