Medium

Understanding 'this' Context When Storing Object Methods in Variables in JavaScript

What is the output of the following code snippet when run in a browser console, and why? Consider the behavior of this inside functions.

Choose an option below