Skip to main content

Operators

Learn Operators (Phase 1 · Fundamentals, Variables, Data Types, Operators (Essential), JavaScript) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Everyday operators • Arithmetic: + - * / % ** ( % is remainder, ** is exponent). • Assignment: = += -= *= /= %= **= , plus the logical forms &&= ||= ??= . • Comparison: === !== < > <= >= . Logical: && (and), || (or), ! (not). • Increment and decrement: i++ returns the old value, ++i returns the new one.

More lessons in Phase 1 · Fundamentals, Variables, Data Types, Operators (Essential)