cachaito
4/17/2014 - 9:15 PM

If statement shorthand

Rzadko spotykany zapis.

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