JavaScript Arrays

// 1. Creating an Array
let fruits = ["Apple", "Mango", "Banana"];

// 2. Accessing Elements
console.log(fruits[0]); // Output: Apple
console.log(fruits[1]); // Output: Mango
                
Apple Index [0]
Mango Index [1]
Banana Index [2]

Multiple Values

An **Array** is a special variable that can hold more than one value at a time. This keeps your data organized in a single "container."

Zero-Based Indexing: The most important rule in JS is that the first item is at position 0, not 1. This is a common point of confusion for new developers!