Arrays - Reading Assignment

  1. They allow us to treat efficiently groups of variables or data
  2. By default array index starts from zero, therefore first element is in index 0
1 Like
  1. An array allows us to store multiple data points within selected variables.

  2. To access the first element in an array, one would refer to index 0 where the elements begin.

1 Like
  1. We use arrays to store a collection of data. An array (The array object) is a collection of variables of the same type. The parameter is a list of strings and integers. An array is created by assigning values.
  2. To access the first elelment in an array we should use 0, as arrays start counting at zero.
1 Like
  1. Arrays make it easier to store multiple value of strings or numbers using one variable.

  2. In order to access the first element in an array you would use the method indexOf to retrieve it.

1 Like
  1. The Array object lets you store multiple values in a single variable
  2. [0]
1 Like
  1. What do arrays allow us to do?
    An array allows store multiple values in a single variable.
  2. What index should you use in order to access the first element in an array?
    First element in an array is index 0.
1 Like

Hello everyone;

  1. Arrays allow us to store multiple values of the same type in a single variable.

  2. arrayName[0]

Please correct me if I am wrong or miss any information.

1 Like
  1. Array are useful to create a set of different parameter of the same type, like the following:
    var array = [1,2,3,4];
    var array2 = [“apple”,“melon”,“banana”];
    to call one specific element of the array is needed to count correctly the element’s position,
    array2[2] is equal to “banana” because is the third element in the array.
  2. As explain above elements into the array are counted starting from “0”, thus to access the first element in an array one should use the number 0.
1 Like
  1. An array allows us to store multiple values in a single variable.

  2. The index we should use in order to access the first element in an array is [0].

1 Like
  1. let you store multiple values in a single variable. They store a fixed-size sequential collection of elements of the same type.
  2. First index is 0.
1 Like
  1. What do arrays allow us to do?
    Arrays allow you to create multiple variables.

  2. What index should you use in order to access the first element in an array?
    x[0], indexOf[0]

1 Like
  1. What do arrays allow us to do? Create a data structure that represents a list of items.
  2. What index should you use in order to access the first element in an array? 0
1 Like
  1. A data type specifically for storing sequences of values
  2. The first index of an array is zero.
1 Like

An array allows you to put multiple values in one variable
To call a specific value you need to use the var[0] for the first value in the variable and then go up from there based on location of variable in the string starting at position one(1) = [0] location.

1 Like
  1. They allow us to store multiple values in a single variable.

  2. It should be “0”, since it’s zero-based index.

1 Like
  1. What do arrays allow us to do?
store a list of values in a variable
  1. 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?
Arrays allows to store multiple values in a single variable.

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

1 Like
  1. An array allows us to store multiple values within a single variable.

  2. The index 0 should be 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.

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

1 Like
  1. Arrays allow you to operate on a list of values.

  2. [0];

1 Like