Command Palette

Search for a command to run...

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

The script that ran too early

The script in the <head> should change the status text to JavaScript is running, but it runs before the paragraph exists and throws an error.

Make it work. You may move the script, wrap the code so it waits for the page, or use any other way from Topic 0.2.

What Check tests

  1. No errors in the console
  2. The status says JavaScript is running
  3. There is still exactly one status paragraph

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.