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

: showAnswer is a handler, and yet it creates a new handler, reblur, in its code. Is that right?


A: You’ve got it. You’ll actually see this fairly often in JavaScript. It’s perfectly normal to see a handler set up additional event handlers for various events. And this is the style of programming we were referring to in the beginning of the chapter: asynchronous programming. To create the image ...


Cover of Head First JavaScript Programming


A tip: an example of handlers that creates handlers?