Operators
Terms: “unary”, “binary”, “operand”
5 * 2
// 5 = right operand
// 2 = left operand
// operand sometimes call arguments
// An operator is unary
let x = 1;
x = -x;
alert( x ); // -1, unary negation was applied
// An operator is binary
let x = 1, y = 3;
alert( y - x ); // 2, binary minus subtracts valuesString concatenation, binary +
Numeric conversion, unary +
Operator precedence
Assignment
Remainder %
Exponentiation **
Increment / decrement
Bitwise operators
Modify-in-place
Comma
Last updated