Arrays - Reading Assignment

  • 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

1 Like
  1. What do arrays allow us to do?
    It allows us to store multiple values of same type (integer or string) within one variable.

  2. What index should you use in order to access the first element in an array?
    “name of array”[0]

1 Like

ah, makes sense. Thanks for your help! JW

  1. Arrays allow us to store multiple values in one binding as a sequence.
  2. Arrays begin counting at index 0, so we would use [0] to access the first value.
1 Like
  1. The Array object lets you store multiple values in a single variable.
  2. Index 0
1 Like
  1. 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.

  2. 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]

1 Like
  1. What do arrays allow us to do? hold multiple values in a variable
  2. What index should you use in order to access the first element in an array? index 0
1 Like
  1. What do arrays allow us to do?
    The arrays let us store multiple values in a single variable.

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

1 Like
  1. Store values in a single array. It can be used to do a lot of things to play with the array.
  2. 0
1 Like
  1. Arrays allow us to store multiple values in a single variable.
  2. The index you should you in order to access the first element in an array starts with 0
1 Like
  1. Arrays let us store multiple values in the same variable.

  2. To access the first element in an array, the index must be equal to 0.

1 Like
  1. Arrays allow us to add multiple values within a single variable.

  2. 0 is the index to use in order to access the first element in an array.

1 Like
  1. What do arrays allow us to do? — store multiple values in a single variable like a list or a collection of data of the same type
  2. What index should you use in order to access the first element in an array? 0
1 Like
  1. it allows us to store multiple values in on variable.

  2. [0]

1 Like
  1. Arrays let you store a multiple values in a single variable.
  2. if array’s name is “animals”
    animals[0]
1 Like
  1. they allow us to store a collection of variables of the same type.
    2.index 0
1 Like
  1. They allow us to store multiple values in a single variable, which then can be used or manipulated as needed.
  2. Index position 0 is the first element’s position in an array.
1 Like
  1. What do arrays allow us to do?
  • Arrays allow us to store a multiple values in a single variable, to store a collection of data.
  1. What index should you use in order to access the first element in an array?
  • With the 0 based index
1 Like
  1. it allows us to store multiple values in a single variable. It is used to store a collection of data.

  2. indexOf()

Returns the first (least) index of an element within the array equal to the specified value, or -1 if none is found.

1 Like
  1. Arrays allow us to store multiple values in a single variable.
    2.The index of the first element of an array is zero.
1 Like