Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - What do++and-,+= and * = in JS mean respectively? Is there such a symbol? Can you be more specific? Thank you.
What do++and-,+= and * = in JS mean respectively? Is there such a symbol? Can you be more specific? Thank you.
++and-These are arithmetic operators.

For example, x=5, y=++x, y=6.

For example, x=5, y =-x, y=4.

+=? Is an assignment operator. ?

Like what? X+=y, which is equivalent to x = x+y.

* = Like what? X*=y, which is equivalent to x = x * y.

Similar symbols: and

1, division (/)

The result of the division operator is the quotient of operands, the left operand is the dividend, and the right operand is the divisor.

2. Remainder (%)

The remainder operator returns the modulus of the first operand to the second operand, that is? var 1? Right? var2? Take the mold. Where is it? var 1? And then what? var2? Is a variable. What is the mode fetching function? var 1? Divide by? var2? Integer remainder of.

3. Power (* *)

The power operator returns the first operand as the radix and the second operand as the exponent. Namely? var 1var2? , among them? Var 1 and? var2? Are its two operands. Power operators are right associative.

4. One dollar minus sign (-)

The unary minus sign operator precedes the operand and is used to convert the sign of the operand.

Extended data

classify

C operators have the following categories:

Note: Conditional operator is the only ternary operator in C language.

Baidu Encyclopedia: Operators