Array

noun

say it: “uh-RAY” /əˈreɪ/

A JavaScript list of values that can grow and shrink, read by position starting at 0.

What is Array in JavaScript?

Array — A fixed-size, indexed collection whose elements all have the same type.

const stops = ["Oak", "Pine", "Lake"];
const secondStop = stops[1];
const stopCount = stops.length;

In a sentence

  • “The cart is an array, and push adds each new item to it.”

Level: Apprentice · More JavaScript terms at this level

Updated

In other subjects