DEV Community

Discussion on: this and super in JavaScript

Collapse
 
deadooshka profile image
Deadooshka

maybe you forgot to return the result of this() in if (that == null) this(...);

Collapse
 
anonyco profile image
Jack Giffin

Yes I did forget to return that. I have now fixed it. Thank you for pointing this problem out.