Arrays - Reading Assignment

  1. An array allows us to store multiple values in a single variable.
  2. indexOf()
1 Like
  1. hold more than one value in a variable
  2. 0
1 Like
  1. An array works like a list, where it stores multiple values of the same type in a single variable.
  2. You should use index 0 to access the first element of an array .
1 Like
  1. What do arrays allow us to do?

store multiple values in a single variable. store a collection of data 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? 0 based index, in this case 0.
1 Like
  1. Array contained variables into one
  2. arr[0]
1 Like
  • What do arrays allow us to do?
  • allows you to store multiple values in a single variable.
  • 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.
  • 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?
    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. What index should you use in order to access the first element in an array?
    You will use ordinal numbers to access and to set values inside an array. The first element of an array is zero [0].

1 Like
  1. What do arrays allow us to do?
  • 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
  1. What index should you use in order to access the first element in an array?
  • example (0)
1 Like
  1. Arrays allow us to create a variable to store several values. Each value can be accessed individually, based on its index position.

  2. I should use 0, as the index uses ‘zero-based counting’.

1 Like
  1. An array allows us to store multiple values in a single variable.
  2. The first element in an array is in index 0
1 Like
  1. Arrays allow us to store multiple values in a single variable.
  2. The first element in an array is 0.
1 Like
  1. Arrays allow us to store many values into one binding name.
  2. To access the first element we use index 0
1 Like

What do arrays allow us to do?
Arrays let you store multiple values in a single variable. It allows us to store data collection variables of the same type.

** What index should you use in order to access the first element in an array?**
x[0]

1 Like
  1. The Array object allow us to store multiple values in a single variable.
  2. 0
1 Like
  1. Arrays allow us to store multiple values in a single variable.
  2. 0 index is used to access the first element in an array.
1 Like
  1. What do arrays allow us to do?
    Arrays allow us to store multiple values in a single variable. An array is a collection of data.

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

1 Like

1- Allow us store a collection of variables of the same type
2- We use the index 0.

1 Like
  1. What do arrays allow us to do?
    -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. What index should you use in order to access the first element in an array?
    zero is the first element and one is the second element , with 2 being the third element

1 Like
  1. What do arrays allow us to do?
    Arrays allow us to store many values in only one variable, each value can be accessed by an index

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

1 Like

1. What do arrays allow us to do?

Arrays allow us to gather multiple data values into a single variable. Although the values can be of different types, the array is usually used to store data items of the same type so for example strings, numbers, booleans, etc.

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

Arrays use zero based indexing so the first element is accessed at index zero, the second at index 1, the third at index 2, and so on and so forth.

1 Like