JavaScript Conditional Statements: if, else, ternary, switch — and the Modern Alternatives
Lesson 1.5 of the JavaScript tutorial — if/else, ternary, switch, short-circuit conditionals, plus the lookup-object and early-return patterns that experienced developers reach for instead of nested conditionals.
