Last active
July 20, 2017 09:06
-
-
Save kotAPI/191c70a8f78dd4a4b5372e0f38f811e3 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
function someFunction(){ | |
console.log("I am a :" + this.thing); | |
console.log(this.somethingElse); | |
} | |
var object = { | |
thing : "programmer", | |
somethingElse:"somethingElse" | |
} | |
someFunction.call(object) | |
//=> I am a :programmer | |
//=> somethingElse |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment