function deliveryFee(totalCents) { return totalCents >= 5_000 ? 0 : 799; } const totals = [4_999, 5_000, 5_001]; console.log(totals.map(deliveryFee).join(", "));