var person = {
name: "John",
message: function () {
console.log("Hello, " + this.name)
}
}
var messageFunc = person.message
messageFunc();
why am i getting "Hello, undefined" when the method here is declared to a variable? why cant it read this?