Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is this in JavaScript?

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


Please Help Members By Posting Answers For Below Questions

How do I link an external javascript file to html?

959


What data types are supported in Javascript?

1101


Is JavaScript case sensitive? Give an example?

1080


What is callback?

1273


Do I need to install javascript?

1006


Is javascript enabled on chrome?

955


What is emotional closure?

942


How generic objects can be created?

985


How can javascript language be separated from objects?

999


How do we add javascript onto a web page?

999


How to loop through array in javascript?

1007


How do browsers work?

985


What does two exclamation marks mean in javascript?

1042


What is the disadvantage of using innerhtml in javascript?

1219


Explain how to detect the operating system on the client machine?

971