Spelling fix
This commit is contained in:
parent
45435ce1bb
commit
e9ed9f16c9
1 changed files with 1 additions and 1 deletions
|
@ -257,7 +257,7 @@ On the last line there is a ternary operator that chooses either `user.hi` or `u
|
|||
|
||||
The method is immediately called with parentheses `()`. But it doesn't work right!
|
||||
|
||||
You can see that the call results in an error, cause the value of `"this"` inside the call becomes `undefined`.
|
||||
You can see that the call results in an error, because the value of `"this"` inside the call becomes `undefined`.
|
||||
|
||||
This works (object dot method):
|
||||
```js
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue