Created
August 14, 2016 21:04
-
-
Save saltukalakus/f6d727a43f5049ef7386f0478c61553f to your computer and use it in GitHub Desktop.
js call
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
var person = { | |
name: "James Smith", | |
hello: function(thing) { | |
console.log(this.name + " says hello " + thing); | |
} | |
} | |
person.hello.call(person, "world"); // output: "James Smith says hello world" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment