Skip to content

Commit ef1bb3e

Browse files
committed
Answered question 3 in part 1 of this.js
1 parent f8ebd5f commit ef1bb3e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎this.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/* The four principles of "this";
22
* in your own words. explain the four principle for the "this" keyword below.
33
*
4-
* 1. Window Binding: Binds to what is usually the window object that executes you code. Ultimately it binds to the global object.
5-
* 2. Implicit Binding: When applying a method this pertains to what is left of the dot.
6-
* 3.
4+
* 1. Window Binding: In this case 'this' is usually the window object that executes you code. Ultimately it binds to the global object.
5+
* 2. Implicit Binding: When applying a method 'this' pertains to what is left of the dot.
6+
* 3. New Binding: When creating something using the 'new' keyword 'this' related to the newly created data.
77
* 4.
88
*
99
* write out a code example of each explanation above

0 commit comments

Comments
 (0)