Take ‘this’ Quiz, Understand How ‘this’ Works in JavaScript

Among all the abstract ideas JavaScript has to offer, the ‘this’ keyword can be one of the most challenging concepts to grasp. On the surface, ‘this’ seems like an intuitive keyword that simply refers to the environment (or scope) it resides in.

As you look deeper into the JavaScript runtime, i.e. where the code is being executed, ‘this’ keyword might end up…