Skip to content

Commit e25caae

Browse files
authored
Correct solution explanation in 1.99.04 (Reference Type)
1 parent dccca58 commit e25caae

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

1-js/99-js-misc/04-reference-type/3-why-this/solution.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Here's the explanations.
55

66
2. 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

1919
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.
2020

0 commit comments

Comments
 (0)