Skip to content

Commit 01acd46

Browse files
author
Ovidiu Voicu
committed
Fix typo and rephrased sentence
1 parent 7a21366 commit 01acd46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

1-js/04-object-basics/04-object-methods/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,9 @@ user.hi(); // John (the simple call works)
257257
*/!*
258258
```
259259
260-
On the last line there is a conditinal operator that chooses either `user.hi` or `user.bye`. In this case the result is `user.hi`.
260+
On the last line there is a conditional operator that chooses either `user.hi` or `user.bye`. In this case the result is `user.hi`.
261261
262-
Then the method is immediately called with parentheses `()`. But it doesn't work right!
262+
Then the method is immediately called with parentheses `()`. But it doesn't work correctly!
263263
264264
As you can see, the call results in an error, because the value of `"this"` inside the call becomes `undefined`.
265265

0 commit comments

Comments
 (0)