Module 20: Your First Interactive Website

Lesson 1 of 5 · 15–25 minutes

Reading errors

🏠The everyday picture

A car's warning light. It doesn't fix the problem, but it tells you where to look. Ignoring it or covering it up makes things worse.

📘What it really is

🖱️Try it

In main.js, make three deliberate mistakes, one at a time: misspell a variable name, use a wrong selector, and delete a closing bracket. Each time, reload, read the console error, click through to the line, and fix it.

✅Quick check

The console shows a SyntaxError and none of your interactions work. Why do they all fail?

Show the answer

A syntax error stops the whole file from running, so every feature in it fails.

What should you give an AI when asking for help with an error?

Show the answer

The full error message, the code around the line it names, and what you expected to happen.

← BackModule 20
ProLearners Assist