DEV Community

Discussion on: Javascript variables - var, let and const.

Collapse
 
fnh profile image
Fabian Holzer

Identifiers in dash case (aka kebab case) are valid properties of objects, but not as variable names.

Apart from that, I personally agree with the conclusion; but to add a different perspective, Kyle Simpson (author of the You don't know JS book series) has a section on that in his book on functional programming:

github.com/getify/Functional-Light...

There is no fragment I can link to, I'm referring to the section "Reassignment".

I don't dispute the argument, that people which didn't bother to learn the language could confuse not being able to reassign a binding with an object being immutable, I just expect that anybody who develops software for a living to master the fundamental semantics the programming language they use.