File tree 1 file changed +2
-2
lines changed
1-js/99-js-misc/04-reference-type/3-why-this
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ Here's the explanations.
5
5
6
6
2 . The same, parentheses do not change the order of operations here, the dot is first anyway.
7
7
8
- 3 . Here we have a more complex call ` (expression).method () ` . The call works as if it were split into two lines:
8
+ 3 . Here we have a more complex call ` (expression)() ` . The call works as if it were split into two lines:
9
9
10
10
``` js no-beautify
11
11
f = obj .go ; // calculate the expression
@@ -14,7 +14,7 @@ Here's the explanations.
14
14
15
15
Here ` f()` is executed as a function , without `this`.
16
16
17
- 4. The similar thing as `(3 )`, to the left of the dot `. ` we have an expression.
17
+ 4. The similar thing as `(3 )`, to the left of the parentheses `() ` we have an expression.
18
18
19
19
To explain the behavior of `(3)` and `(4)` we need to recall that property accessors (dot or square brackets) return a value of the Reference Type.
20
20
You can’t perform that action at this time.
0 commit comments