June 2018
Beginner
288 pages
6h 31m
English
Metaprogramming is a way to extend a program at runtime—it’s the ability to write code that writes code. It’s one of the most complex and yet one of the newest and most powerful features of JavaScript. You may use metaprogramming to dynamically extend code where you feel fit.
JavaScript classes are open—that is, you can extend them without using inheritance, which means you’re not limited to using the facilities provided by the author of the class. You can add your own convenience methods and properties to classes so that the code may be easier and more fluent to use, to meet your own style or preferences. And you can add these behaviors dynamically at runtime, anytime.
Inheritance forces you to create ...
Read now
Unlock full access