Array Basics
Arrays store ordered collections of values. They're one of JavaScript's most important data structures.
Creating Arrays
Loading JavaScript Playground...
Accessing Elements
Loading JavaScript Playground...
Modifying Arrays
Loading JavaScript Playground...
Array Length
Loading JavaScript Playground...
Exercise: Create and Access
Create an array of three numbers and print the middle one:
Loading JavaScript Exercise...
Exercise: Modify Array
Change the first element of an array:
Loading JavaScript Exercise...
Up next · Lesson 24 of 37
Array Methods
1 min read
23 of 37 lessons done

Ask Byte about this lesson
A private chat about this lesson. Byte has read the whole lesson, answers in seconds, and shows the section each answer comes from. Ask follow-ups in any language.
Questions & Answers
Public questions about this lesson. The AI Tutor answers right away in your language, the FreeAcademy team checks answers, and every learner can read them.

