This commit is contained in:
Ilya Kantor 2019-08-28 08:44:31 +03:00
parent 4d305484bd
commit b218b185b0

View file

@ -26,7 +26,7 @@ Before we move on, let's grasp some common terminology.
alert( y - x ); // 2, binary minus subtracts values alert( y - x ); // 2, binary minus subtracts values
``` ```
Formally, we're talking about two different operators here: the unary negation (single operand: reverses the sign) and the binary subtraction (two operands: subtracts). Formally, in the examples above we have two different operators that share the same symbol: the negation operator, a unary operator that reverses the sign, and the subtraction operator, a binary operator that subtracts one number from another.
## String concatenation, binary + ## String concatenation, binary +