Recent | Popular
#condtional #ternary
const calcTip = (bill) => { return bill >= 50 && bill <= 300 ? bill * 0.15 : bill * 0.20; } const demandIcon = demand === "low" ? iconArrowDown : demand === "stable" ? iconArrowRight : demand === "high" ? iconArrowUp : "";
Wed Jun 12 2024 06:23:57 GMT+0000 (Coordinated Universal Time)