Skip to content

Operators

Operators are symbols that perform operations on values (operands). JavaScript has a rich set of operators that let you do math, compare values, make decisions, and more.

  • Use arithmetic, comparison, logical, and assignment operators
  • Understand operator precedence and associativity
  • Master modern operators: optional chaining and nullish coalescing
  • Understanding of variables and data types
Operator TypeOperators
Arithmetic+, -, *, /, %, **, ++, --
Comparison===, !==, >, <, >=, <=
Logical&&, ||, !
Assignment=, +=, -=, *=, /=, %=
Ternarycondition ? expr1 : expr2
Nullish Coalescing??
Optional Chaining?.
Arithmetic → Assignment → Comparison → Logical → Ternary → Nullish Coalescing → Optional Chaining

1–2 hours

  • Data Types
  • Control Flow
  • Variables