4 ms·
I interpret part of this short article as if the author, with "I'm not saying you must write JavaScript a certain way. Do what makes you the most comfortable, w
by hackermom 17y ago
I interpret part of this short article as if the author, with "I'm not saying you must write JavaScript a certain way. Do what makes you the most comfortable, write code that is fun to write." implies that it's ok to write JS function names etc. in any way, which is very bad advice, because, some (or most?) JS engines have case sensitivity on function calls; Math.floor() will work, but math.floor() will throw a reference error and Math.Floor() will throw an undefined function error. Really: you must write JavaScript a certain, very specific way, or it just won't work everywhere :)
- scott_s 17y agoThat's not what that means. The author assumes that the reader understands that your code must be legal JavaScript. It's an article about coding style, not coding correctness.