You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e0a08fa
Browse filesBrowse the repository at this point in the historyBrowse files
* in your own words. explain the four principle for the "this" keyword below.
3
3
*
4
-
* 1.
5
-
* 2.
6
-
* 3.
7
-
* 4.
4
+
* 1. When "this" has not been defined in a local scope it will take the global meaning of "this."
5
+
* 2. When we invoke a method via dot notation, the "this" keyword refers to the Object before the dot.
6
+
* 3. When creating objects from a constructor function with the keyword "new", the "this" keyword refers to the specific object created and extracted from the constructor function.
7
+
* 4. When using ".apply()" or ".call()" we will be explicitly binding "this."
8
8
*
9
9
* write out a code example of each explanation above
0 commit comments