Rzadko spotykany zapis.
var gender = 'male', salutation = gender === "male" ? "Mr. " : "Ms. "; //'Mr.'