-
Arrays allow us to assign multiple values to one variable.
-
The index of an element in an array starts with 0 and goes up from there.
- Store multiple values in one variable.
- 0
They allow us to hold more than one item in a variable.
You start counting with 0, so you type 0 for the first variable in the array.
What do arrays allow us to do?
Store multiple values under one variable.
What index should you use in order to access the first element in an array?
0 is the first element
1.) An Array lets you store multiple values in a single variable.
2.) We should use the zero based index. This means we will start counting from 0 and it being the 1st value.
-
Arrays allow variables to have multiple values stored within them.
-
indexOf.
-
Arrays allow us to store multiple values in a single variable and the many methods that can be called on arrays give us a large amount of extra functionality.
-
The first element has an index of 0/
-
Arrays allows us to store multiple values in a single variable. It also facilitates a collection of variables of the same type.
-
To access the first element in an array, index pointer must be to the zero [0] reference of the values.
1-> store more values in one variable
2-> var cars = [ “saab”, “mercedes”, “bmw”]; -> cars[0] represents the first element in the array “saab”
What index should you use in order to access the first element in an array?
That is not the correct answer sir, maybe you want to redesign the answer.
If you have any more questions, please let us know so we can help you!
Carlos Z.
1.- Arrays allow us to make collection of variables.
2.- You should use index 0 to get the first element in an array.
- Arrays allow us to store a collection of data and store multiple values in a single variable.
- Indexed with 0 (zero)
What do arrays allow us to do?
Answer: Arrays are objects that let you store multiple values in a single variable.
What index should you use in order to access the first element in an array?
Answer: By default it’s 0
- What do arrays allow us to do?
A: it allows us to store multiple numbers in one variable. - What index should you use in order to access the first element in an array?
A: 0
-
What do arrays allow us to do?
It allows us to store multiple values of the same type into one variable. -
What index should you use in order to access the first element in an array?
array[0]
Arrays Reading Assignment
- Arrays allow us to store multiple values in a single variable usualy of the same type, fixed size, and sequential.
- shift() returns to first elemnt in an array.
- Arrays can store multiple values of the same data-type in one single variable.
- You have to use varName[0]
-
What do arrays allow us to do?
Store multiple values in a single binding or variable
. -
What index should you use in order to access the first element in an array?
shift() - It removes the first element of an array and returns it.
unshift()- Allows you to add 1 or more elements to the from of an array and returns the new length of the array.
UPDATE-
For the second question.
array[0]
I’m open to feedback plz.
1. What do arrays allow us to do?
To create a single object that can hold a collection of variables. These variables can be accessed, added to, shifted, checked, sectioned,etc… via the methods of the array object.
- What index should you use in order to access the first element in an array?
array[0]