Arrays
Creating arrays, accessing elements, adding/removing (push/pop), and iterating with loops.
Simple enough for a 5-year-old to understand
Create an array and access elements
const colors = ["red", "purple", "green"];console.log(colors[0]);console.log(colors.length);Adding and removing
const basket = ["apple"];basket.push("pear");console.log(basket);🎯 Exercise & Practice
Test what you've learned — answer, write code, check instantly. (1 left)