Chapter 4 Review

  1. Variable types can be categorized into 2 groups. What are the names of the 2 groups?
  2. Declare an object named obj with a property named age that is set to 20.
  3. Are arguments passed by reference, passed by value, passed by object, or passed by name?
  4. What is the scope chain?
  5. What is the purpose of the with() statement?
  6. What is the scope for variables that are declared with var?
  7. What is the scope for variables that are declared with let?
  8. What is the scope for variables that are declared with const?
  9. What is one of the most common and easily fixed type of memory leak?

© 2020, Eric. All rights reserved.