Today in computer: In Coffeescript, on
and yes
are aliases for true
. off
and no
are aliases for false
.
Defining variables or functions with such a name will give you errors like this:
reserved word "true" can't be assigned
reserved word "false" can't be assigned
Posted by Henning Koch to makandra dev (2014-12-16 10:49)