JavaScript Fundamentals: Understanding the Ternary Operator