Comment on Stop Using Constructors in JS (2012)parentComments−wnevets11ywhich part of prototype is java-like?−diggan11yI think the comment author you responded to, meant that the developers behind JavaScript was "forced" to add the "new" keyword simply to make JavaScript more Java-like. Not that JavaScript actually is like Java.−wnevets11yThe new keyword was absolutely added to be Java-like however the "prototype system" is nothing like Java.
Comments
which part of prototype is java-like?
I think the comment author you responded to, meant that the developers behind JavaScript was "forced" to add the "new" keyword simply to make JavaScript more Java-like. Not that JavaScript actually is like Java.
The new keyword was absolutely added to be Java-like however the "prototype system" is nothing like Java.