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 to write frame work Architecture in QTP

1868


What are .js files?

851


how do you declare variables in javascript?

955


How to get complete current page url with javascript?

876


Is there any class in javascript?

959


What is lambda in programming?

897


How do I link an external javascript file to html?

851


What is scope chain in javascript?

932


What is meant by object oriented programming?

833


what is pop()method in JavaScript?

950


In Javascript are calculations with fractional numbers guaranteed to be precise?

978


Is javascript object a hash table?

917


What is whitespace in javascript?

932


How to count the number of element in an array using javascript?

1033


How to get the type of arguments passed to a function?

860