Advanced
Timed: find the NaN (10 minutes)
Interview-style task, about 10 minutes. The chart draws three days from a messy export, and one value is the text n/a, so a bar gets a NaN height and the console shows an error.
Fix it so two bars are drawn, no attribute holds NaN, and #note says 1 row skipped. Say out loud how you found the bad row.
What Check tests
- Two bars are drawn
- No attribute holds NaN
- The note says 1 row skipped
- The bars are 74.5 and 94.0 pixels high
Stuck? One hint at a time
The solution unlocks after your first Check. Try first: that is where the learning happens.
Runs in your browser. Your code is saved here.
Your page
Press Run to see the page.
Console
Nothing logged yet.