From 01acd465ba641415a148f9b734c3fc12d13ca1f4 Mon Sep 17 00:00:00 2001 From: Ovidiu Voicu Date: Wed, 3 Jul 2019 19:07:41 +0300 Subject: [PATCH] Fix typo and rephrased sentence --- 1-js/04-object-basics/04-object-methods/article.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/1-js/04-object-basics/04-object-methods/article.md b/1-js/04-object-basics/04-object-methods/article.md index 078e592c..fefcb908 100644 --- a/1-js/04-object-basics/04-object-methods/article.md +++ b/1-js/04-object-basics/04-object-methods/article.md @@ -257,9 +257,9 @@ user.hi(); // John (the simple call works) */!* ``` -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`. -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! As you can see, the call results in an error, because the value of `"this"` inside the call becomes `undefined`.