Explain the use of 'this' keyword in JavaScript

Instruction: Describe how the 'this' keyword works in different contexts within JavaScript.

Context: This question evaluates the candidate's understanding of the context-sensitive nature of the 'this' keyword, a core concept in JavaScript object-oriented programming.

Upgrade to view answer

Related Questions