Ternary with 2 conditions

PHOTO EMBED

Wed Jun 12 2024 06:23:57 GMT+0000 (Coordinated Universal Time)

Saved by @davidmchale #condtional #ternary

const calcTip = (bill) => {
  return bill >= 50 && bill <= 300 ? bill * 0.15 : bill * 0.20;
}
content_copyCOPY