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 : "";
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter