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.

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