Google News
logo
JavaScript - Interview Questions
In JavaScript, what is ‘This’ keyword?
In JavaScript, the keyword ‘this’ refers to the object it belongs to and gives different values depending upon its usage.
 
For Example :
 
* In method – refers own object
* Alone – refers to the global object
* Function – undefined (in strict mode)
Advertisement