Created
January 31, 2013 01:17
-
-
Save tmcw/4679030 to your computer and use it in GitHub Desktop.
This file contains 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
// mistakes | |
// works, loops don't work yet | |
function closure(x) { | |
return function() { | |
return x; | |
} | |
} | |
var c = closure('hello world'); | |
c(); | |
var doublerainbow = closure(c); | |
doublerainbow()(); | |
var x = 10; | |
x == '10'; // nice equals | |
x === '10'; // strict equals |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment