condition ? exprIfTrue : exprIfFalse
////////////////////////////////////
//Example
const age = 26;
//set the bevarage conditionally depending on the age
const beverage = age >= 21 ? "You can have a Beer" : "Stick to Juice Kid";
console.log(beverage); //OUTPUT: "You can have a Beer"
//Same as
//if(age>=21){
//bevrage="You can have a Beer"}
//else{
//bevrage = "Stick to Juice Kid"}