We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c261a8d + 01acd46 commit f887302Copy full SHA for f887302
1 file changed
1-js/04-object-basics/04-object-methods/article.md
@@ -257,9 +257,9 @@ user.hi(); // John (the simple call works)
257
*/!*
258
```
259
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`.
+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`.
261
262
-Then the method is immediately called with parentheses `()`. But it doesn't work right!
+Then the method is immediately called with parentheses `()`. But it doesn't work correctly!
263
264
As you can see, the call results in an error, because the value of `"this"` inside the call becomes `undefined`.
265
0 commit comments