File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -299,7 +299,7 @@ SECOND HALF (14.00 - 16.00)
299
299
## 3. The ` this ` keyword and its relationship with ` scope `
300
300
301
301
### Explanation
302
- - The environment(or scopeis knownich the line is being executed is know as “Execution Context”
302
+ - The environment(or scope) in which the line is being executed is know as “Execution Context”
303
303
- The object that ` this ` refers to, changes every time execution context is changed.
304
304
- Whatever is calling the function passes the ` this ` value to it by default.
305
305
- We can pass specific ` this ` by ` .bind ` , ` .call ` or ` .apply `
@@ -440,7 +440,7 @@ person2Display(); // Prints Name: Paul Adams
440
440
441
441
The this keyword works differently in arrow functions.
442
442
443
- - The ` this ` value inside the arrow function gets binded and calcuated and assigned based on its wrapper/container/parent ` this ` value.
443
+ - The ` this ` value inside the arrow function gets binded and calculated and assigned based on its wrapper/container/parent ` this ` value.
444
444
- The methods call(), apply(), and bind() will not change the value of this in arrow functions
445
445
### Example
446
446
``` javascript
You can’t perform that action at this time.
0 commit comments