5 hands-on exercises and 5 find-the-bug challenges for the What is JavaScript lesson. Every one is checked automatically in the browser — write the code, run it, and the tests tell you what still fails.
Use JavaScript to put the word "running" into #out.
Work out 6 times 7 and show the result.
Read the heading's text and show it.
Set #out's colour to red, then report "styled".
Store a browser fact in a variable and show "dynamic".
The code targets an element that does not exist.
textContent is spelled wrong, so nothing appears.
Ready to write the code?
The editor, the automatic checks and the worked solutions open up with an account.
Open the workspaceThe text is unquoted, so JavaScript looks for a variable.
querySelectorAll returns a list, not one element.
The assignment is written backwards.