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]
- Lab 4 solution – see Canvas Files
Functions [35 min]
- Chapter 8: Slides 45–60
- JS Cheatsheet:
Pages 12–13 (
thiskeyword, constructor)
Events [35 min]
- Chapter 9: Slides 24–40
- Test Your Knowledge #3 (Pages 447–448) Event Handlers
Before Thursday
- Submit Prep 5 on Gradescope. ← Due Wed at 11:59pm