Sorry, this video is for subscribers only.

Click here to subscribe!

Object-Oriented Programming

We want to turn our DomElement abstraction into a proper object-oriented class. We review how JavaScript’s prototype-based inheritance works, then create a constructor function and move our DomElement functions into its prototype. We rely heavily on our tests as a safety net to allow us to move quickly and confidently.

comments powered by Disqus