Created
December 21, 2012 19:25
-
-
Save gouf/4355146 to your computer and use it in GitHub Desktop.
2012-12-22 2nd
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
body { background-color: #DDDDDD; font: 30px sans-serif; } |
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
function hello(){ | |
console.log('Hello'); | |
} | |
function bye(){ | |
console.log('good bye.'); | |
} | |
var say = {}; | |
say.hello = hello; | |
say.bye = bye; | |
var sayTo = {}; | |
sayTo['hello'] = Say.hello; | |
sayTo['bye'] = Say.bye; | |
for(var key in sayTo){ | |
console.log(sayTo[key]()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment