Command Palette

Search for a command to run...

Hectal
Phase 4: Data in the Browser
Data Visualization · Exercise 3 of 5 PreviousNext
Intermediate

Error and empty states

Two panels load files. #a loads a wrong path, #b loads a CSV with only a header row. Both stay blank.

Make #a say Could not load (plus the reason) and #b say No data. Use response.ok for the first and the row count for the second.

What Check tests

  1. #a says Could not load
  2. #a names the reason (404)
  3. #b says No data

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.