Back to JS LabChallenge 1 of 19
🍎
0
🍌
1
🍇
2
const fruits = [🍎, 🍌, 🍇];

Accessing Elements

Get the Banana from the list!

const fruit = fruits[];

Quick Guide

Syntax
array[index]
Description

Arrays are zero-indexed, meaning the first element is at index 0, the second is at index 1, and so on.

Example
const arr = ['a', 'b', 'c'];
console.log(arr[1]); // Output: 'b'