There are a number of good references on the internet on Coffeescript. The intent of this article is to basically toss out the absolute basics for people who are unfamiliar who need to quickly look over a codebase and have some clue what is going on!
Variables are not declared with var, let or const. They are set just how they would be in Python or Ruby:
name = “Sam”
num = 5
The major downside of this is that you can never treat variables as if they were let or const.
Also, like Ruby, instance variables start with a @.
Functions are declared with a thin arrow ->, although fat arrows (=>) just like in ES6 are also available! There are no curly braces and no “function()”, so the white space and indentation is mandatory.
Objects no longer have parentheses or commas. White space is very critical!
Also important to note…there are some aliases that coffeescript has that you might see in code:
! is equivalent to not
this is is equivalent to @
This is not a full listing but if you feel like you are seeing something that looks like it has an alternate name, you can search!
More on Coffeescript
There is excellent documentation on Coffeescript online just a search away. I highly recommend digging in further if you have time if it is something you need to use.