// standard function declaration inside of object
const person {
name: "Taylor",
sayHello: function() {
return `Hello! My name is ${this.name}.`;
}
};
// ES6 function declaration inside of object, allows for removal of function keyword
const person {
name: "Taylor",
sayHello() {
return `Hello! My name is ${this.name}.`;
}
};