3 ms·
Can you give a few examples of common JS mistakes that coffeescipt prevents?
by gabemart 12y ago
Can you give a few examples of common JS mistakes that coffeescipt prevents?
- dscrd 12y agoI'm not deep in either CS or JS, but I suppose one could find some pitfalls from the differences between == and ===, and from checking the existence of a variable? Also, JS switch/case statements follow the good-old maldesign from C where each body has to end with break or it falls through. Variable hoisting? This: http://dorey.github.io/JavaScript-Equality-Table/ http://dorey.github.io/JavaScript-Equality-Table/