Please enable JavaScript to use CodeHS

Web Development

Lesson 1.7 This Keyword

Description

In this lesson, students learn how to use the keyword this to pass elements as parameters in their click events.


Objective

Students will be able to:

  • Appropriately use the keyword this
  • Explain the difference between how this is used with onclick and with eventListeners