JavaScript arithmetic operator (a)

Arithmetic operation marks


What is the expression

Will, arithmetic symbol data connection of the same type (e.g., constants, variables, functions, etc.) according to certain rules together, a meaningful expression called formula

Classification operator

  1. Arithmetic operation marks
  2. Logical Operators
  3. Assignment operator
  4. Comparison operators
  5. Ternary operator

Arithmetic Operators

  • +: Plus
  • -:Less
  • *: Multiply
  • /:except
  • %: Remainder

Increment and decrement

    1, increments

        ++ a and a ++ are on a increment operation

        the difference:

        ++ a return to the incremented value of a
        value of a return to a ++ first original value, and then return after the increment

    2, decreasing empathy

Published 15 original articles · won praise 16 · views 215

Guess you like

Origin blog.csdn.net/qq_43133192/article/details/104925057