DEV Community

Discussion on: Classes in JavaScript

Collapse
 
ericdecol profile image
punk croc

Bad code. It should be outsite for organization. You can call it inside the constructor if you want it to run when instantiating a class, but it's creationg should be elsewhere, in a more organized way