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

Joe: 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.

Joe: So how did our code for the showAnswer function work up until now? It’s being passed this event object, but we don’t have a parameter defined for ...


Cover of Head First JavaScript Programming


How the event object (while the target constituting its property) is passed as a parameter in the handler?