Lesson 19: Ternary operator Concise one-line conditional: cond ? a : b. What you'll learn use for simple value selection, not side effects avoid nesting more than once — it hurts readability great for inline JSX/templates Example See examples/. Exercise Replace a 3-line if/else with a ternary.