File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
1-js/99-js-misc/04-reference-type/3-why-this Expand file tree Collapse file tree 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.
55
662 . The same, parentheses do not change the order of operations here, the dot is first anyway.
77
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:
99
1010 ``` js no-beautify
1111 f = obj .go ; // calculate the expression
@@ -14,7 +14,7 @@ Here's the explanations.
1414
1515 Here ` f()` is executed as a function , without `this`.
1616
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.
1818
1919To 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.
2020
You can’t perform that action at this time.
0 commit comments