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
What are JavaScript Cookies?
How to create function in JavaScript?
List different ways of empty an array in javascript?
Why is javascript good for websites?
How to test a string as a literal and as an object ?
Explain mul function in javascript?
How do you submit a form using JavaScript?
What is the use of debugger keyword in javascript?
how to validate the date(dd/mm/yyyy)using regular expression in javascript? It should also satisfy the leap year feb 29 problem. Please help me.
Explain the process of document loading.
What is the use of dom?
What do you mean by script?
What is a function object?
What is the difference between textContent and innerText?
How to get the type of arguments passed to a function?