Murach's JavaScript and DOM Scripting
How to create and use functions

Chapter 2 shows how to write simple functions. Now, this chapter reviews some of the basic skills and presents the advanced skills that you need to work effectively with the function object.

Chapter 10 How to create and use functions
Basic skills for working with functions 328
How to create and call a function 328
How values are passed to functions 330
How lexical scope works 332
Object-oriented skills for working with functions 334
How to use the arguments property of a function 334
How to use the call and apply methods of a function 336
Advanced skills for working with functions 338
How closures work with functions 338
How to write recursive functions 340
The Invoice application 342
The user interface 342
The XHTML file 344
The library file 346
The invoice.js file 350




Murach's JavaScript and DOM Scripting

Learn more about this book

View the table of contents


More about the eBook



Our 100% Guarantee

First, try our books for 90 days. Then, if you aren't completely convinced that our books are the best ones you've ever used, you can return them for a prompt refund...no questions asked.