An operator is unary if it has a single operand. The multiplication is said to have a higher precedence than the addition. The same minus exists in binary form as well: the negation operator, a unary operator that reverses the sign.

9m read timeFrom javascript.info
Post cover image
Table of contents
Terms: “unary”, “binary”, “operand”MathsString concatenation with binary +Numeric conversion, unary +Operator precedenceAssignmentModify-in-placeIncrement/decrementBitwise operatorsComma
1 Comment

Sort: