NEW TICKET#7 · Invoice list
“Due in 3 days” on the invoice list
Priya Raman · Product Manager
Opened today
“Freelancers want to see at a glance which invoices need chasing. Next to each one, the list should say how its due date compares with today: Due today, Due tomorrow, Due in 5 days, Overdue by 1 day, Overdue by 3 days. Hannah already wrote daysBetween, which counts the days from one date to another. Can you finish dueLabel?”
YOUR PLAN
- 1Watch an example2 min
- 2Warm-up 11 min
- 3Warm-up 21 min
- 4Fix the ticket8 min
BY THE END YOU CAN
- Choose between several cases with
ifandelse if - Put the cases in an order that works
- Turn a negative number positive with
-