Operators

Arithmetic operators

Increment and decrement operators

Assignment operators

Comparison operators

Logical operators

Operator precedence

Operator precedence table
  1. ()
  2. i++, i--
  3. ++i, --i
  4. **
  5. *, /
  6. +, -
  7. <, <=, >, >=
  8. ==, !=, ===, !==
  9. &&, ||

Exercises

  1. Declare a few variables, assign values to them with arithmetic operators of +, -, *, /
  2. If x = true and y = false, what are the values of x && y and x || y?