Chapter 6. Building and Calling Functions

CONTENTS>>

In discussing the different structures, objects, statements, operators, and expressions in JavaScript, you have seen several examples using functions. Chapter 3, “Dealing with Data and Variables,” explained global and local variables and discussed how local variables are defined inside of function definitions. Chapter 1, “Jump-Starting JavaScript,” showed how JavaScript in the deferred mode uses functions with event handlers to enable the designer to build a page that responds to the user’s actions with input devices. This chapter ...

Get JavaScript Design 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.