There are many operators in JavaScript, which are mainly divided into arithmetic operators, identity operators, comparison operators, string operators, logical operators, assignment operators and so on. These operators have their own operating rules. Let's introduce the operators in JavaScript.
I. Types of JavaScript operators
1, arithmetic operators:+,-,*,/,%,-(unary negation),++,-
2. Equivalent identical operators: = =, = =,! == 、 ! ===
3. Comparison operator:
4. String operator:
5. Logical operator:&; & amp、 ||、 ! 、
6. Assignment operators: =,+=, * =,-=,/=