Qus : What is "this" in JavaScript:
Qusजावास्क्रिप्ट में "this" क्या है:
A. keyword B. function
C. Declaration Statement D. Data type
Solution
A. keyword
Explanation
In JavaScript, the keyword this refers to the current execution context or the value of the current object. The value of this depends on how a function is called or how an object is used. Here are some common scenarios: