What is super() in JavaScript?
What’s happening when you see some JavaScript that calls super()?
.In a child class, you use super()
to call its parent’s constructor and super.<methodname></methodname>
to access its parent’s methods. This article will assume at least a little familiarity with the …