Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - What are the basic js operators of the Web front-end?
What are the basic js operators of the Web front-end?
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: =,+=, * =,-=,/=