JavaScript Lessson 4

JavaScript Mathematics

Lesson 3 Lesson 5

Notes:

Arithmetic Operations:

  • The addition operator (Plus +) adds numbers.
  • The subtraction operator (Minus -) subtracts numbers.
  • The multiplication operator (multiply *) multiplies numbers.
  • The division operator (divide /) divides numbers.
  • The modular operator (Modulus %) returns the division remainder.
  • The increment operator (Add one ++) increments numbers.
  • The decrement operator (Subtracts one --) decrements numbers.
  • The += assignment operator adds a value to a variable.
  • The -= assignment operator subtracts a value from a variable.
  • The *= assignment operator multiplies a variable.
  • The /= assignment operator divides a variable.
  • The %= assignment operator assigns a remainder to a variable.