BACK_TO_ROOT
MODULE 04

DATA STRUCTURES

Organize your data effectively. Use Arrays for ordered lists and Objects for structured key-value pairs.

DATA_ARCHITECT

ACTIVE
DATA_ARCHITECT
STRUCTURE_VIEW
length: 3
[
"Apple"
0
,
"Banana"
1
,
"Cherry"
2
]
// Live Code
const fruits = ["Apple", "Banana", "Cherry"];

Arrays

An ordered collection of items. Accessed by index (starting at 0).

const list = ['A', 'B', 'C'];list[0] // 'A'

Objects

A collection of properties. Accessed by key name.

const user = { name: "John" };user.name // "John"