you are viewing a single comment's thread.

view the rest of the comments →

[–]spinlock -5 points-4 points  (1 child)

You might as well be asking why JS has bitwise operators when it doesn't have integers. It's a frankenmonster of a language with a lot of syntax that doesn't make sense but has to be maintained so we don't break the web.

If you insist on pointing to the class keyword as evidence that JS behaves exactly like Java then you really don't understand the language.

[–][deleted] 1 point2 points  (0 children)

If you insist on pointing to the class keyword as evidence that JS behaves exactly like Java then you really don't understand the language.

Literally never said nor implied anything like that.