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
If you need to hide the javascript code from the older browser versions, how will you perform it?
What is the use of window object?
Where can I learn javascript for free?
Can you explain how inheritance works in javascript?
What is the use of Void(0)?
How do I retrieve a cookie with a given name using a regular expression?
Does apple use javascript?
What is closure? Give an example.
What is encodeuri() function?
What is an undefined value in JavaScript?
How to redirect a page to another page in javascript?
Explain the difference between call() and apply()?
What is javascript ‘strict mode’?
What does javascript do?
Does html5 replace javascript?