Skip to content

Instantly share code, notes, and snippets.

@gouf
Created December 21, 2012 19:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gouf/4355146 to your computer and use it in GitHub Desktop.
Save gouf/4355146 to your computer and use it in GitHub Desktop.
2012-12-22 2nd
body { background-color: #DDDDDD; font: 30px sans-serif; }
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