Merge pull request #690 from elie222/patch-2

Spelling fix
This commit is contained in:
Ilya Kantor 2018-12-24 12:48:14 +03:00 committed by GitHub
commit 5b90eb74df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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