Section 5.6. Questions


5.6. Questions

  1. What are the three main types of functions and when would you use each type?

  2. How can a function modify variables outside its scope?

  3. How can you dynamically alter the number of arguments to a function?

  4. What property allows a function to access its own scope?

  5. Create a function that takes a data object and a function as parameters and invokes the function using the data object.

Answers are provided in the appendix.




Learning JavaScript
Learning JavaScript, 2nd Edition
ISBN: 0596521871
EAN: 2147483647
Year: 2006
Pages: 151

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net