Variables: let vs const: Coding lesson for kids

In this lesson, children learn to choose between let and const and explain when each applies.

let score = 0;: let creates a variable that CAN be reassigned later.

const name = "Max";: const prevents REASSIGNING the variable — the name cannot be pointed at a new value.

const pet = { name: 'Max' }; pet.name = 'Charlie';: const blocks reassignment, but does NOT freeze the object — its properties can still be changed.

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.