Created
December 29, 2017 09:15
-
-
Save debugmodedotnet/fce219512be68d4d6e79c2abebf61c57 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 message(age) { | |
return `Hi ${this.name}, you are ${age} years old !`; | |
} | |
var person = { | |
name: 'dj' | |
}; | |
var mes = message.call(person, 30); | |
console.log(mes); // Hi dj, you are 30 years old ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment