I don’t want to call the parent constructor. Can we do something about this?
I am trying to explore JS classes and I am getting error if I am not calling super()
.
JS- Don’t want to call the parent constructor. Can we do something about it?
I am trying to explore JS class and here I am getting error, if I am not calling super().
ReferenceError: Must call super constructor in derived class before accessing ‘this’ or returning from derived constructor