switch and the Conditional Operator

A switch statement matches one value against a list of exact choices, and the conditional operator ? : picks one of two values in a single line, so a long chain of else ifs can say what it means.

Updated

Cheat sheet: switch and the Conditional Operator
Category
JavaScript
Level
Apprentice
Tags
JavaScript, switch Statement (javascript), Ternary Operator (javascript)