3 ms·
> Which is the problem with "class" in a nutshell. Which is not new with Javascript in general. every single feature in javascript suffers from being strangely
by camus2 10y ago
> Which is the problem with "class" in a nutshell.
Which is not new with Javascript in general. every single feature in javascript suffers from being strangely familiar while having a behavior specific to Javascript. Comparison operators, var declaration hoisting,function declaration hoisting, "this", "typeof" operators,type equality and coercion rules, and co, all require to actually learn how the language works. This isn't a very good argument against the class keyword. Yes, developers who use a language need to learn it before hand. It applies to all languages.