Control Flow & Loops

What is the primary purpose of the ternary operator (condition ? expr1 : expr2) in JavaScript?
Next Question (12/30)