Arrays: Index & push: Coding lesson for kids
In “Arrays: Index & push”, children learn about let fruits = ["apple", "banana"];; fruits.push("cherry");; fruits[0].
let fruits = ["apple", "banana"];: An array holds multiple values in order, indexed starting at 0.
fruits.push("cherry");: Adds a new item to the END of the array.
fruits[0]: Gets the item at index 0 — the FIRST item in the array.
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.