What will be printed to the console when executing myObject.greet() in the following code?
const myObject = {
name: 'Francisco',
greet() {
console.log(`Hello, I am ${this.name}`);
}
};
myObject.greet();
What will be printed to the console when executing myObject.greet() in the following code?
const myObject = {
name: 'Francisco',
greet() {
console.log(`Hello, I am ${this.name}`);
}
};
myObject.greet();