Skip to content

Feb 17: Function Objects

Learning Objectives

After today’s class, you should be able to:

  • Explain how function and variable declarations are hoisted to the top of their scope.
  • Compare function declarations (which are fully hoisted) and function expressions.
  • Add event listeners to multiple DOM elements after DOM content has been loaded.

Lesson Outline

Debrief [5 min]

Functions [35 min]

Events [35 min]

  • Chapter 9: Slides 24–40
    • Test Your Knowledge #3 (Pages 447–448) Event Handlers

Before Thursday

  1. Submit Prep 5 on Gradescope. ← Due Wed at 11:59pm