well he's trying to say that it does not make much sense as (1) functions are values, (2) variables can reference functions, and (3) variables and functions declarations share the same namespace
a function can be stored in a variable... so how would you name it? Ok, camelcase. What if it can be a function or false? Still camelcase? Ok. What about a value that can be false or true? Now breaks
2
u/DaemonXI Mar 27 '15
Normally I like four spaces, but JavaScript is so heavily nested with callbacks that I think using two spaces actually makes the code more readable.