From 80c490153ab733449b83d1e5b964192e9d0b1ca0 Mon Sep 17 00:00:00 2001 From: Mustafa Kemal Tuna <12192118+lumosmind@users.noreply.github.com> Date: Thu, 7 Jan 2021 12:09:31 +0300 Subject: [PATCH] all operators must return a value All operators should return a value because of the definition of the term 'operator'. I could not find an operator as an exception which doesn't return a value. Do you? --- 1-js/02-first-steps/08-operators/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/02-first-steps/08-operators/article.md b/1-js/02-first-steps/08-operators/article.md index 45b1f342..f40f61db 100644 --- a/1-js/02-first-steps/08-operators/article.md +++ b/1-js/02-first-steps/08-operators/article.md @@ -219,7 +219,7 @@ alert( x ); // 5 The fact of `=` being an operator, not a "magical" language construct has an interesting implication. -Most operators in JavaScript return a value. That's obvious for `+` and `-`, but also true for `=`. +All operators in JavaScript return a value. That's obvious for `+` and `-`, but also true for `=`. The call `x = value` writes the `value` into `x` *and then returns it*.