In CoffeeScript, comments are denoted by the #
character to the end of a line, or from ###
to the next appearance of ###
. Comments are ignored by the compiler, though the compiler makes its best effort at reinserting your comments into the output JavaScript after compilation.
###
Fortune Cookie Reader v1.0
Released under the MIT License
###
​
sayFortune = (fortune) ->
console.log fortune # in bed!
​
/*
Fortune Cookie Reader v1.0
Released under the MIT License
*/
var sayFortune;
​
sayFortune = function(fortune) {
return console.log(fortune); // in bed!
};
​
Inline ###
comments make type annotations possible.