Functions with Parameters: Coding lesson for kids
In “Functions with Parameters”, children learn about function square(n) { return n * n; } and square(4).
function square(n) { return n * n; }: n is a PARAMETER — a placeholder filled in with whatever value is passed when the function is called.
square(4): Calls square with 4 as the argument — inside the function, n becomes 4.
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.