- What do arrays allow us to do?
To accumulate a group of variables
- What index should you use in order to access the first element in an array?
*Zero
To accumulate a group of variables
*Zero
The Array object lets you store multiple values in a single variable. It stores a fixed-size sequential collection of elements of the same type. An array 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.
Index 0.
Ans 1:
An array is an object that makes allowance to store multiple values within the same single variable.
Ans 2:
The “shift” Array method is the one to use when wanting to remove the first element and return that first element as an output.
Ans: The property for indexing is zero based, therefore I think it is the first string/parameter within the parenthesis (). I think it is number one.
I just went on to the next video where Ivan explained the convention referencing number ‘0’ as the index for the first element in the variable. Got it!
1.What do arrays allow us to do?
Arrays allows us to store multiple values in a single variable.
2.What index should you use in order to access the first element in an array?
The programmer should use the index 0.
1. Arrays are used to store sequential collection of values of the same type as a single variable.
2. arrayname[0] returns the first element of the array.
What do arrays allow us to do?
They allow storing a collection of values in o single variable.
What index should you use in order to access the first element in an array?
The first index is 0
1.Arrays allow us to multiple values in a single value. They allow us to store more than one variable in a single binding.
2. [0]
Arrays let us store more values into one variable. It is like a collection of multiple variables of the same type.
For me, the syntax console.log(arrayName[0]); worked. As the counting starts at 0, we have to call the value number 0.
What do arrays allow us to do?
Arrays allow us to have a list of strings and other values in an sinble variable,
What index should you use in order to access the first element in an array?
Index [0]
Reading Assignment : Arrays (Answers):
Arrays allow us to “store multiple values in a single variable”.
To find/access the first element in an array, use the name of the array followed by a zero in square brackets, i.e. fruits[0]
1. What do arrays allow us to do?
Arrays allow variables to be organized into a numerical index.
2. What index should you use in order to access the first element in an array?
An array index starts with the value ‘0’.
Q1. What do arrays allow us to do?
We can use arrays to store multiple values in a single variable.
eg.
var fruits = [“grapes”, “mango”, “banana”];
var year = [2000, 2001, 2002, 2004];
Q2. What index should you use in order to access the first element in an array?
Index 0 is used to access first element of the array.
fruits[0] gives grapes
year[0] gives 2000
What do arrays allow us to do?
Store multiple values in a single variable and perform various operations on those values.
What index should you use in order to access the first element in an array?
[0]
What do arrays allow us to do?
Arrays allow us to store multiple values to one variable.
What index should you use in order to access the first element in an array?
0, ziltch, nada