CoffeeScript: Difference between revisions

Content deleted Content added
Correct JS syntax to use variable declaration keywords, and copyedit
mNo edit summary
Line 119:
</syntaxhighlight>
 
Any [[For loop|''for'' loop]] can be replaced by a [[list comprehension]]; so that to compute the squares of the positive odd numbers smaller than ten (i.e. numbers whose remainder modulo 2 is 1), one can do:
 
<syntaxhighlight lang="coffeescript">