Learn about the syntax of the ternary operator in JavaScript, some of its common uses, and when it's a good option to choose.