if / else if / else: Coding lesson for kids

In this lesson, children learn to write an if/else if/else chain and trace which branch runs.

if (score > 10) { ... }: Runs the block inside the braces only if the condition is true.

else if (score > 5) { ... }: Checked only if the "if" above was false — an extra condition to try.

else { ... }: Runs if NONE of the above conditions were true — the fallback.

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.