Sorry, this video is for subscribers only.

Click here to subscribe!

Metaprogramming

Our DomElement abstraction is finished, but it doesn’t have its own tests yet. We begin by having each pair of event methods test each other. This leads to duplication, so we extract out an event testing method. That takes us into first-class functions, metaprogramming, and the vagaries of the “this” keyword in JavaScript.

comments powered by Disqus