- What do arrays allow us to do?
Arrays allow us to create a list of elements in a variable
- What index should you use in order to access the first element in an array?
the first index is the 0
Arrays allow us to create a list of elements in a variable
the first index is the 0
What do arrays allow us to do?
It allows us to store multiple values of same type (integer or string) within one variable.
What index should you use in order to access the first element in an array?
“name of array”[0]
ah, makes sense. Thanks for your help! JW
What do arrays allow us to do?
They allow us to you store multiple values in a single variable.
It stores a sequence of elements of the same type. It is used to store a collection of data, but it is often more useful to think of an array as a collection of variables of the same type.
What index should you use in order to access the first element in an array?
The zero-based index of the match in the string [0]
What do arrays allow us to do?
The arrays let us store multiple values in a single variable.
What index should you use in order to access the first element in an array?
Arrays let us store multiple values in the same variable.
To access the first element in an array, the index must be equal to 0.
Arrays allow us to add multiple values within a single variable.
0 is the index to use in order to access the first element in an array.
it allows us to store multiple values in on variable.
[0]
it allows us to store multiple values in a single variable. It is used to store a collection of data.
indexOf()
Returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found.