Skip to content

Comment on Stop Using Constructors in JS (2012)parent

Comments

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.