What will be printed to the console when executing person.greet() in the following code?
const person = {
name: 'Elena',
greet: () => `Hello, my name is ${this.name}`
};
console.log(person.greet());
What will be printed to the console when executing person.greet() in the following code?
const person = {
name: 'Elena',
greet: () => `Hello, my name is ${this.name}`
};
console.log(person.greet());