I know that this is usually used to reference data within the same object.
Are there any cases where this can reference methods inside the object, not props?
What are the pluses and minuses of doing that?
var person = {
name: "John",
showName() {
return this.name;
},
showNameAgain() {
return this.showName();
}
};
console.log( person.showName() );
console.log( person.showNameAgain() );