Skip to content

Instantly share code, notes, and snippets.

@xitij2000
Created December 8, 2011 13:40
Show Gist options
  • Select an option

  • Save xitij2000/1447020 to your computer and use it in GitHub Desktop.

Select an option

Save xitij2000/1447020 to your computer and use it in GitHub Desktop.
CoffeeScript code to print squares of first 10 numbers
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