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
Which built-in method removes the last element from an array and returns that element?
What is stack queue?
Explain higher-order functions in javascript?
Why is var better than let?
How are javascript and ecma script related?
What are the different objects used in javascripts?
Where do you put javascript in html?
What is an ECMAScript?
Name some of the ways in which Type Conversion is possible?
What is the way to get the status of a CheckBox?
Difference between Client side JavaScript and Server side JavaScript?
What percentage of websites use javascript?
what is the difference between wrappers and primitives es: diff between int i=200 in primitives and integeri = new integer(54)
What is use of JavaScript and jquery?
What is argument objects in javascript & how to get the type of arguments passed to a function?