# JavaScript Overview – Expressions and Operators

The following are the common expressions and operators used in JavaScript:

- Primary: (x) x.y f(x,y,z) a[x]
- Unary: +x –x !x ++x –x x++ x-- ~x32
- Multiplicative: * / %
- Additive: - + (+ is also used for string concatenation)
- Shift32: << >> (sign extend) >>> (zero extended)
- Relational: < > <= >= (alphabetical for strings)
- Equality: == != === !== (strict equality/inequality)

- Bitwise32

  - AND: &
  - OR: |
  - XOR: ^
  - Conditional AND: &&
  - Conditional OR: ||
  - Conditional if: ?:
- Assign: = *= /= %= += -= &= ^= |= <<= >>= >>>=