r/coffeescript • • Apr 29 '15

Don't learn CoffeeScript until you understand JavaScript (Part 1)

http://www.pandawhisperer.net/post/117705078745/dont-learn-coffeescript-until-you-understand
19 Upvotes

2 comments sorted by

View all comments

Show parent comment

4

u/mbarkhau Apr 30 '15

However, learning CoffeeScript — and studying the JavaScript it compiles into — taught me a ton more about JavaScript than I already knew.

This is exactly how I learned Javascript. CoffeeScript has some syntactic sugar for Javascript ideoms that are not obvious for a novice in JavaScript. Specifically I'm thinking of the syntax for classes and inheritance, bound functions, no accidentally missing semicolons no accidental globals because you forgot to type var.