CoffeeScript basics - Evanto/qna GitHub Wiki

1 -> (thin arrow, as opposed to fat arrow =>, also used in coffeescript) is equal to function keyword. The JavaScript function keyword was replaced with the thin arrow. The fat arrow serves as the function keyword and also binds the function to the current context.Arrow Functions - ES6 and CoffeeScript 1

  $(document).on 'click', '.reset-vote-link', (e) ->
    e.preventDefault();

(e) is an argument

2 to comment use ### 3

# Get access to the element with the id votableId
csOutput = document.getElementById("csoutput")

4

Links: