Skip to content

Instantly share code, notes, and snippets.

@qingfeng
Created August 17, 2011 07:13
Show Gist options
  • Save qingfeng/1151005 to your computer and use it in GitHub Desktop.
Save qingfeng/1151005 to your computer and use it in GitHub Desktop.
Hello Coffee Script
number = 42
sqr = (x) -> x*x
x = sqr number
alert x
(function() {
var number, sqr, x;
number = 42;
sqr = function(x) {
return x * x;
};
x = sqr(number);
alert(x);
}).call(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment