Created
December 29, 2017 09:15
-
-
Save debugmodedotnet/3c65638b9645487f5f9a480e55f23a7c 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.apply(person, [30, 67]); | |
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