Medium
What is the output of the following code snippet when run in a browser console, and why? Consider the behavior of this inside functions.
1const person = {2 name: "Alice",3 greet: function () {4 console.log(`Hello, ${this.name}!`);5 },6};78const greetPerson = person.greet;9greetPerson();