1 - Javascript¶ ↑
2 - jQuery¶ ↑
3 - Syntax¶ ↑
-
Thin arrow (“->”)
Replaces Javascript keyword “function”
-
Fat arrow (“=>”)
Keeps the value of 'this' constant (rather than being changed when passing functions to other functions)
-
Using jQuery from coffeescript
DOM ready:
1 jQuery -> 2 $(document).ready -> 3 $ ->