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

Where can I learn javascript?

925


name any two javascript functions which are used to convert nonnumeric values into numbers?

879


What is arguments object in JavaScript?

1052


How will you get the checkbox status whether it is checked or not?

831


Where do I put javascript code in html?

977


What is the microsoft version of javascript?

989


Is javascript a highly secure scripting language?

990


How to prevent modification of an object in Javascript?

1084


What is stack queue?

874


Does javascript support automatic type conversion, if yes give example.

1014


Where do you put javascript in html?

940


What is Unobtrusive JavaScript & Why it's Important?

1003


Who created npm?

877


Event bubbling and Event Capturing in JavScript?

960


How to achieve inheritance in javascript?

936