HOUR 6:Using Functions and Objects
What You’ll Learn in This Hour:
• Defining and calling functions
• Returning values from functions
• Understanding JavaScript objects
• Defining custom objects
• Working with object properties and values
• Defining and using object methods
• Using objects to store data and related functions
In this hour, 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 also create functions that accept parameters and return values for later use.
Whereas functions enable you to group ...
Get Sams Teach Yourself JavaScript in 24 Hours 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.