Software Sue

Link to Simply Sue
Link to Sustainability Sue
location: software/scripting/javascript/operators Skip navigation : Home  

JavaScript Operators


JavaScript has 7 types of operators:

Some operators take precedence over others in evaluations. For a complete list of operators and their order of precedence, see the Order of Precedence.

JavaScript has unary, binary, and one ternary operator (the conditional operator).

Each unary operator consists of one operand, either before or after the operator, e.g. y++ or ++z.
Each binary operator comprises one operand, the operator, then a second operand, e.g. a+b or 1+2.
The ternary operator (the conditional operator) has three operands.