Arrays - Reading Assignment

  1. An array allows you to store multiple values of the same type under the same variable.

  2. To access the first element of an array called myArray, you would do myArray[0].

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

store multiple values in a single variable. string a list of items

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

0

2 Likes

1- Arrays allow us store multiple values in a single variable.Keeping a list of values in short.

2- index[0] is the first element of an array

2 Likes
  1. Arrays allow you to store multiple values within a single element.
  2. The first element in an array is index 0
1 Like
  1. What do arrays allow us to do?

Arrays allow us to store multiple values of the same type.

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

You would use the index 0 to access the first element in an array.

1 Like
  1. array allows you to store multiple values in a single variable, useful as a collection of similar variables

  2. firstelement[0]

1 Like
  1. What do arrays allow us to do?
    Arrays hold more than 1 value in 1 name in a sequential fashion.
  2. What index should you use in order to access the first element in an array?
    0
2 Likes
  1. Arrays allow us to store multiple values of the same type (i.e strings or integers) within a single variable.

  2. The index to use that will allow you to access the first element of an array is [0].

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?
    Arrays are indexed starting at zero.
1 Like

1. What does an array allow us to do?
Arrays are variables that contain a set of values rather than a single value, thus they allow more concise organization of and access to elements of the same type.

2. What index should you use to access the first element of an array?
As Javascript utilizes counting from 0, the first element in an array is accessed with the index [0], similar to how the first character of a string would be indicated.

1 Like
  1. Arrays lets you store multiple values in one variable, you can add almost as many values you want, but they all have to be the same type in the bracket.

  2. First element always starts with 0 and have to be used to access the first value in an array.

1 Like
  1. Arrays allow programmers to batch information into lists or objects. This can be particularly helpful with data that is somewhat categorised. Programmers can perform actions to arrays which manipulate, sort and filter the data which could be relevant to a number of different use cases.

  2. Arrays in JavaScript are ordered as zero-based indexes. This means that if a programmer wishes to access the first element of an array, they will query the 0’th element of the array.

1 Like
  1. What do arrays allow us to do?
    JavaScript arrays are used to store multiple values in a single variable.
  2. What index should you use in order to access the first element in an array?
    The first and last elements are accessed using an index and the first value is accessed using index 0 and the last element can be accessed through length property which has one more value than the highest array index
1 Like
  1. It allows us to hold more than one value in a variable.
  2. the First element is in index 0 x[0]
1 Like
  1. It allows you to store multiple values within a single variable.
  2. 0
1 Like

1 - array allows you to create a list of values in a single variable.

2 - 0

1 Like
  1. store multiple values in a single variable (of the same type)
  2. index [0] because it starts counting from 0 and not from 1
1 Like
  1. Arrays let you store multiple elements in a single variable.
  2. The index you should use to access the first element in an array is: exampleArray[0].
1 Like
  1. What do arrays allow us to do?
    Arrays are special variables. They allow us to store more than one value in a single variable.

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

1 Like
  1. What do arrays allow us to do?
    An array allows the storage of multiple values (of the same type) in a single value.
  2. What index should you use in order to access the first element in an array?
    someArray[0]
1 Like