Created
January 17, 2016 10:45
-
-
Save tomsato/a99fb801014e6b8ff103 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
var hoge = (function(){ | |
var x = {p:3, q:5} | |
return function() {return x.p + x.q;} | |
})(); | |
print(hoge()); // 8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment