Array Access

Each value inside an array is called an array element

Examples:

var numbers = [1, 3, 3, 7];
var fruits = ['apples', 'oranges', 'grapes'];

Each element is numbered starting with the left-most element: 0

Example:

fruits[0] == 'apple'
fruits[2] == 'grapes'

numbers[2] == 3

Array Access courses

Exercises: Arrays

Learn to use arrays as data structures

Array Access lessons

Array Basics

Create an array and populate it with values

Array Madness

Learn about accessing and using arrays to form crazy sentences!

Related Links

No links found
About Array Access

A type of variable which hold multiple values at once

Badge

Array Access