Arrays - Reading Assignment

  1. Store multiple values in a single variable
  2. 0
1 Like

What do arrays allow us to do? Store multiple values in a variable container (like a bookshelf)
What index should you use in order to access the first element in an array? 0

1 Like
What do arrays allow us to do?

They allow us to store multiple values into a container of variables.
What index should you use in order to access the first element in an array?
0.

1 Like
  1. Allows us to store sequences of values
  2. 0
1 Like

1. What do arrays allow us to do?
The Array object allows us to store a collection of values of the same type in a single variable.

2. What index should you use in order to access the first element in an array?
0

1 Like

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? Use the index 0 to access the first element of an array

1 Like

What do arrays allow us to do?

It lets us to store a collection of objects in a sequential structure which sometimes it is more easily to handle in that way.

What index should you use in order to access the first element in an array?

0

1 Like

My Answers;

  1. Arrays allow us to store different values possibly related to each other in memory for later reference.
  2. The first index of an array in Javascript starts with 0.
1 Like

Arrays

  1. To store multiple values in a single variable. Each place in an array has an index number,
    Var row = [element0,element1,elementX];

  2. row[0] is the first element in an array.
    row[1] is the second element.
2 Likes
  1. What do arrays allow us to do?
    

Store multiple values in one variable or object. Think of it like a box with neatly organized things inside of it.

  1. What index should you use in order to access the first element in an array?
    

array[0]

1 Like
  1. An array can hold many values under a single name, and you can access the values by referring to an index number,
  2. You should use the first index [0].

var person = [“John”, “Doe”, “Jack”];
console.log(person[0]);

1 Like
  1. Arrays allow us to place multiple things into one variable. var newArray = [1, 2, 3] or var nextArray = [“one”, “two”, “three”].

  2. The first item is called with a zero. In newArray, to call 1 it would go as follows: newArray[0].

1 Like

What do arrays allow us to do?
Store multiple values of the same type in a single variable.
What index should you use in order to access the first element in an array?
The first element of an array always have the index 0

1 Like
What do arrays allow us to do?

We can store multiple variables in array. These variables must be of the same type.

What index should you use in order to access the first element in an array?

The first element in an array is stored in the 0 index. This is the same for most languages, however, there are some that do not use a 0th index (matlab).

1 Like

What do arrays allow us to do?
And array allow us to store multiple data in one variable.
What index should you use in order to access the first element in an array?
The first index of an array is 0.

1 Like
  1. What do arrays allow us to do?

An array is a special variable, which can hold more than one value in a single variable.

  1. What index should you use in order to access the first element in an array?

To access the first element in an array, the programmer will declare ordinal number to access set value a number of zero to the array.

1 Like
  1. An array allows you to store multiple values within a variable.
  2. element[0]
1 Like
  1. storing multiple values in one variable
  2. the first element of an array can be found at index 0.
1 Like

What do arrays allow us to do?
we can put many values of the same type into one variable (not just one value as we used before)
var TV = [“samsung”, “philips”, “panasonic”];
What index should you use in order to access the first element in an array?
index 0 allows us to access the first element
TV[0]

1 Like

What do arrays allow us to do?
store multiple values in a single variable.
What index should you use in order to access the first element in an array?
arrayname[0]

1 Like