Last active
December 29, 2015 01:39
-
-
Save westonplatter/7594941 to your computer and use it in GitHub Desktop.
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
x = 1 | |
foo = -> | |
x = 2 | |
return | |
foo() |
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
var x=1; | |
var foo = function (){ | |
var x=2; return; | |
}; | |
foo(); |
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
x = 1 | |
foo = -> | |
@x = 2 | |
foo() | |
console.log x; |
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
npm install -g coffee-script | |
coffee -c ./example.coffee | |
### compiled file | |
// Generated by CoffeeScript 1.6.3 | |
(function() { | |
var foo, x; | |
x = 1; | |
foo = function() { | |
return x = 2; | |
}; | |
foo(); | |
console.log(x); | |
}).call(this); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment