Skip to content

Instantly share code, notes, and snippets.

@roryf
Created November 20, 2013 00:20
Show Gist options
  • Save roryf/7555133 to your computer and use it in GitHub Desktop.
Save roryf/7555133 to your computer and use it in GitHub Desktop.
Pop quiz
var one = {
name: 'one',
hello: function() {
console.log(this.name);
}
};
var two = {
name: 'two'
};
two.hello = one.hello;
two.hello(); // what gets printed?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment