Created
December 8, 2011 13:40
-
-
Save xitij2000/1447020 to your computer and use it in GitHub Desktop.
CoffeeScript code to print squares of first 10 numbers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| square = (n) -> i * i for i in [1..n] | |
| document.write square 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment