What does this focused boundary check print?
JavaScript
function deliveryFee(totalCents) {
return totalCents >= 5_000 ? 0 : 799;
}
const totals = [4_999, 5_000, 5_001];
console.log(totals.map(deliveryFee).join(", "));
function deliveryFee(totalCents) {
return totalCents >= 5_000 ? 0 : 799;
}
const totals = [4_999, 5_000, 5_001];
console.log(totals.map(deliveryFee).join(", "));