New Coffeescript programmers usually struggle with understanding the differences between ->
and =>
function definitions. In order to clarify this common case of confusion, it helps to look at how such functions are compiled down to JavaScript.
class A
constructor: () ->
@funcA()
@funcB()
funcA: () ->