JavaScript Arrays Worksheet

Question 1

What is the term for items that are stored in an array?

The items stored in an array are called elements. Each element can be accessed using its index within the array.

Question 2

The position number of an item in an array is called what?

The position of an item in an array is called its index. It’s like the item’s spot in the list. In most programming, the first item is at index 0, the second item is at index 1, and so on.

Question 3

What is the index of the first value/element in an array?

The index of the first element in an array is 0.

Question 4

True or False - The length of an array is always one greater than it's highest index.

True

Coding Problems

Coding Problems - See the 'script' tag below this h3 tag. You will have to write some JavaScript code in it.

You'll use the form below in one of the coding problems: