Command Palette

Search for a command to run...

Hectal
Phase 0: Start Here: What JavaScript Is
JavaScript · Exercise 4 of 5 PreviousNext
Beginner

A report card in the console

You have three students' results. Use the right console tool for each message:

1. Show the whole students list with console.table.

2. Ravi scored below 40: show the warning Ravi needs help: 38 with console.warn, using his score from the list (not typing 38 yourself).

3. Show the error Missing score for Meera with console.error.

What Check tests

  1. The list is printed with console.table
  2. The console shows Ravi needs help: 38
  3. The warning uses console.warn
  4. Ravi's score comes from the list
  5. The console shows Missing score for Meera with console.error

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.