Last active
January 3, 2016 11:19
-
-
Save ionutzp/8455261 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 foo() { | |
console.log(this.a); | |
} | |
function doFoo(fn) { | |
fn(); | |
} | |
var obj = { | |
a: 2, | |
foo: foo | |
}; | |
doFoo(obj.foo); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment