//condition ? expressionIfTrue : expressionIfFalse
let balance = 20;
balance > 20? "rich" : "broke";
//It is equivalent to if(balance > 20){"rich"} else{"broke"}
const age = 18;
//condition ? whenTrue : whenFalse
const drink = (age >= 21) ? "beer" : "juice";
console.log(drink) //juice