You want to create class variables and instance variables (properties).
Solution
Class Variables
Instance Variables
You have to define instance variables (i.e. properties) inside a class’ method, initialize your defaults in the constructor.
WARNING!
Do not add the variable accidently to the prototype, by defining it outside the constructor (Even if mentioned elsewhere, this does not work as intended, due to the underlying JavaScript prototype concept).
Discussion
Coffeescript will store the values of class variables on the class itself rather than on the prototype it defines. These are useful for defining variables on classes which can’t be overwritten by instance attribute variables.