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