1×
Become a member
to unlock all features
Autoplay

    De-sugar an ES6 Class and the Extends Keyword

    javascriptJavaScript

    Sure you've seen and heard of the ES6 class keyword. You might of also used the extends keyword before in order to subclass your class as well. However, do you actually understand what is happening behind the scenes? Could you de-sugar these keywords into basic programming functions? In this lesson we work with two classes that use the extends keyword and recreate them with functions and built in methods. We also talk about some of the differences between a function and a class.