Debug the Program: Coding lesson for kids
In “Debug the Program”, children learn about Debug the program and if (score = 10).
Debug the program: One line has a typo, wrong symbol, or wrong logic — read carefully and find it.
if (score = 10): A classic bug: a single = ASSIGNS 10 to score inside the condition, instead of comparing with === — watch for it.
This lesson is part of JavaScript in Coding at Pearls Valley Academy — What makes a webpage actually do something.
Each lesson starts with a short narrated, animated explanation, then hands-on practice. A wrong answer gets a gentle hint, never a penalty, and children earn stars and pearls as they go.