File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
1-js/04-object-basics/04-object-methods Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
264264As you can see, the call results in an error, because the value of `"this"` inside the call becomes `undefined`.
265265
You can’t perform that action at this time.
0 commit comments