Arrays - Reading Assignment

  1. What do arrays allow us to do?

Store mulitple values in a variable

  1. 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?
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.
Arrays allow us to hold more than one value in a variable.

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

Array index starts from zero. So first element is in index zero.

1 Like
  1. Arrays allow us to store multiple values in a single variable.
  2. To access the first element in an array, you will use ordinal numbers starting from 0. In this case, Arrayname[0]
1 Like
  1. Arrays let us keep a collection of variables in a single variable.

  2. IndexOf()

1 Like

1.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.

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

Store values of the same type in the same variable in form of a list.

  1. 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?

Collect a set of similar data and run various operations on them as a group.

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

array[0]

1 Like
  1. What do arrays allow us to do?
  • arrays allow us to store values inside of variables which are stored at a fixed size.
  1. What index should you use in order to access the first element in an array?

-indexOf(0)

1 Like
  1. What do arrays allow us to do?
    Arrays are used to store data into a collection of variables of the same type and can be accessed through the use of zero-based index.
  2. What index should you use in order to access the first element in an array?
    myArray[0] shows the first element because computers count from zero rather than one like humans do.
1 Like
  1. What do arrays allow us to do?

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.

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

Zero index
array[0]

1 Like
  1. 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.

  2. 0, indexOf

2 Likes
  1. Allows storing of multiple values in a single variable.
  2. “0”
3 Likes
  1. Arrays allow us to store multiple values under a single variable. Essentially allowing us to store values of the same type together as we wish.
  2. You use 0 to access the first element as the the first element in order starts at 0.
2 Likes
  1. ***What do arrays allow us to do?
    Store multiple values in a single variable.
  2. ***What index should you use in order to access the first element in an array?
    indexOf
1 Like

1.An array is a data structure, which can store a fixed-size collection of elements of the same data 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.
2.The* index value of the first element of the array is 0.

1 Like
  1. Arrays allow you to store multiple values in a single variable.

  2. [0]

1 Like
  1. Lets you store multiple values in a single variable.

  2. By default array index starts from zero. The first element in the index is 0.

1 Like
  1. Arrays are used tp store multiple values in a single variable.
  2. Index starts at 0
1 Like
  • What do arrays allow us to do?
    Arrays are objects that allow us to store many variables under the same name.

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

1 Like

Hello,
The first element index number is 0

1 Like