When the ES6 class shipped back in 2015, a number of additional keywords came with it. Two of these are constructor
and super
. Both of these are specific to the class
keyword and make working with classes manageable. Both are utilized when the new
keyword is used to create a new instance of a class
. constructor
s are called initially with the new
keyword and super
is how a subclass can utilize it's parent's methods (like it's parent's constructor function) within that child class.