Skip to content

Instantly share code, notes, and snippets.

@kotAPI
Last active July 17, 2017 08:04
Show Gist options
  • Save kotAPI/26fe9ff4f26bcbb832a16f98f32b1de3 to your computer and use it in GitHub Desktop.
Save kotAPI/26fe9ff4f26bcbb832a16f98f32b1de3 to your computer and use it in GitHub Desktop.
var myObject = {
name: "Matt Murdock",
age: 28,
callFunction:function(){
console.log("My name is "+ this.name + " and I’m " +this.age+ " years old."
}
}
myObject.callFunction();
//=> My name is Matt Murdock and I'm 28 years old.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment