Code highlights logo




Imagine you have a box where you can keep your action figures. You can have all sorts of action figures—superheroes, animals, or even aliens—and they all fit neatly in the box. In the programming world, we have something similar called an "array." An array is like a special box where we can store a bunch of things, like a list.

For example, if you want to remember what fun things you want to do this year, you might write a list like this:

  1. Write in my diary every day.
  2. Learn how to train a hawk.
  3. Figure out how to juggle three balls.

In JavaScript, a programming language, we can write this list in a special way:

1let funActivities = ['Write in my diary every day', 'Learn how to train a hawk', 'Figure out how to juggle three balls'];

This is what we call an array. It's like a super list that can hold all types of things, like words, numbers, or even other lists. And just like your action figures, each thing in an array has its own special spot.

As we go through the lessons, you're going to learn how to create an array, how it works, and how to change the things inside it. It's like learning how to organize and rearrange your action figures in the best way. Cool, right?

Sign up to start coding

Already have an account?

Sign In

Course content