1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-30 20:49:49 +02:00

Update 101-this-in-a-method.md (#2035)

* Update 101-this-in-a-method.md

* Update content/roadmaps/106-javascript/content/111-javascript-this-keyword/101-this-in-a-method.md

Co-authored-by: Kamran Ahmed <kamranahmed.se@gmail.com>
This commit is contained in:
Himanshu
2022-10-04 19:04:51 +05:30
committed by GitHub
parent 2f3eccdedb
commit 9491682fcc

View File

@@ -1 +1,7 @@
# This in a method
# this in a method
Methods are properties of an object which are functions. The value of this inside a method is equal to the calling object. In simple words, this value is the object “before dot”, the one used to call the method.
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://javascript.info/object-methods#this-in-methods'>`this` in methods</BadgeLink>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.w3schools.com/js/js_this.asp'>Short and clear post about the `this` keyword</BadgeLink>