Arrays - Reading Assignment

  1. What do arrays allow us to do? to store many values in a single variable.

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

  1. What do arrays allow us to do?
    It allows us to store multiple values/objects into 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?
    With arrays we can 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 the use of variables that store multiple values.

  2. first element in index is 0.

1 Like
  1. What do arrays allow us to do?
    Allow us to store a collection of data ( variable type) in a single variable of type ‘array’.
  2. What index should you use in order to access the first element in an array?
    [0]
1 Like
  1. An array allows us to store multiple values in a single variable.
  2. The count starts at 0, so to access the first element in an array you would need to write nameOfVar[0]. To access an n element in an array you would need to write nameOfVar[n-1]
1 Like
  1. To store a collection of data.
  2. [0]
1 Like

What do arrays allow us to do?
-store multiple strings/intigers of the same type in one variable
What index should you use in order to access the first element in an array?
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. lets one store multiple values, of the same type, in one variable.
  2. [0]
1 Like
  1. Arrays allow to store many values of the same type in a single variable.
  2. 0
1 Like
  1. Array allow us to put multiple value in a single variable.
  2. Index 0
1 Like
  1. What do arrays allow us to do?

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

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

[0]

1 Like

1.JavaScript arrays are used to store multiple values in a single variable.

2.JavaScript arrays are zero-indexed. The first element of an array is at index 0 .

1 Like
  1. The Array object lets the user store multiple values in a single variable.
  2. The index 0 let you access the first element of an array – array[0].
2 Likes
  1. What do arrays allow us to do? Take chunks of data types specifically for storing a sequence of values between square brackets.
  2. What index should you use in order to access the first element in an array? The first index at the element in an array is 0. Counting from the front of an array.
1 Like
  1. What do arrays allow us to do?
    It 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?
    0
1 Like
  1. simply, an array allows you to store multiple values in a single variable, and/or collection of variables.

  2. indexOf()

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

Allows us to store numerous values in a single variable.

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

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

This function gives you the index of the element in the array. If you directly want to pick the first element, you ought to use the myArray[0].

Happy learning!

1 Like
  1. Arrays allow us to store multiple variables in a single variable
  2. indexOf()
1 Like