O'Reilly logo
  • Ahmed Elgendy thinks this is interesting:

Great. That sounds perfect for showAnswer. We’ll be done in a snap... Wait, so showAnswer is passed the event object?

Judy: That’s right.


Cover of Head First JavaScript Programming


A tip: so this event object is passed as a parameter to the function and it carries information about the target/the element object that initiates the event.