Is there a way to expand the reach of this code snippet so that it functions correctly below? I've attempted to utilize the .bind() function without success.
var myObject = {
message: "Greetings",
message2: " Universe",
execute: {
allFunctions: function() {
return this.message + this.message2;
},
partFunction: function() {
return this.message2;
}
}
}
console.log(myObject.execute.allFunctions())
// => "Greetings Universe"
console.log(myObject.execute.partFunction())
// => " Universe"