Answer Posted / hr@tgksolutions.com
this refers to the object that is executing the current function.
• In the global scope, this refers to window (in browsers).
• Inside an object method, this refers to the object itself.
• Inside an arrow function, this is lexically bound (inherits from the surrounding scope).
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do I link an external javascript file to html?
What data types are supported in Javascript?
Is JavaScript case sensitive? Give an example?
What is callback?
Do I need to install javascript?
Is javascript enabled on chrome?
What is emotional closure?
How generic objects can be created?
How can javascript language be separated from objects?
How do we add javascript onto a web page?
How to loop through array in javascript?
How do browsers work?
What does two exclamation marks mean in javascript?
What is the disadvantage of using innerhtml in javascript?
Explain how to detect the operating system on the client machine?