Arrays - Reading Assignment

Hello Tuesday! :white_heart: :yellow_heart: :black_heart: :heart: :green_heart: :blue_heart:

  1. JavaScript provides a data type specifically for storing sequences of values. It is called an array and is written as a list of values between square brackets, separated by commas.

  2. To access the first element in an array use zero as it is the first index :woman_shrugging:

2 Likes

1. What do arrays allow us to do?
Arrays are a collection variables of the same type that can store multiple values in a single variable.

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

2 Likes

1)Arrays allow us to store a collection of elements of the same type in a single variable.
2) Index 0 allows us to access the first element of an array.

1 Like
  • What do arrays allow us to do?
    The arrays object let us store multiple values in a single variable

  • 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?
Allows us to store multiple values of one type in a single variable as a collection.

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

1 Like
  1. An array allows the programmer to access multiply different values within a variable, for example the array could be collecting values from another data base, and if you wanted to apply the same piece of code(variable) to all the values in that database using an array would solve this.
    2.To access the first element of the array you would use index.number and the first element would always start with zero (0) and so the second would be one(1) and so on.
1 Like
  1. an array allows us to make a list of values in a variable and then call a single or more objects in that list.

  2. if you want to get the first element of the array you should use something like:
    console.log(variable name[0 for first, 1 for second etc]);

1 Like

1- arrays are used to store more than one values/objects in a variable
2- first element is in index 0

1 Like
  1. What do arrays allow us to do?
    Array’s allows us to store different values in a variable.
  2. What index should you use in order to access the first element in an array?
    To call the first element of an array you must call the index 0.
1 Like

1. What do arrays allow us to do?
Allows us to store multiple values of one type in a single variable as a collection.

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?
    Arrays allows us to store multiple values of the same type in a single variable
  2. What index should you use in order to access the first element in an array?
    Array[0] will access the first element in an array.
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, 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?
    -> in order to access the first element in an array, the index β€˜0’ needs to be used

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, 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?
    The first element of an array has index 0

1 Like
  1. Arrays allows us to store different objects in a single variable.

  2. We use [0] to determine the first element of the array.

1 Like
  1. The Array object lets you store multiple values in a single variable.

  2. Arrays start counting at 0 so if you want to select the first one in a variable you would use binding[0].

1 Like

1. What do arrays allow us to do?
They allow us to store multiple variables in a single variable which can be called on individually by referencing the position in the array using ordinal numbers.
2. What index should you use in order to access the first element in an array?
You would use the ordinal number 0.

1 Like
  1. Arrays allow us to combine a group of similar values together in the same variable. This compartmentalizes our coding, for an overall increase in organization and efficiency.

  2. The index used in order to access the first element in an array is β€œvariable”[0]

Ex.

var fruits = [ mango, apples, banana];

fruits[0] --> mango
fruits[1] --> apples
fruits[2] --> banana

1 Like
  1. Arrays allow us to hold more than one value in a variable.
  2. Arrays start counting at 0 so when you want to call the first value of the array then you use 0 instead of This means that calling the third value is called by using the number 2.
1 Like
  1. Arrays allow us to store multiple pieces of data into a unique variable, as an ordered list of values.
  2. Zero.
1 Like

The Array object lets you store multiple values of the same type in a single variable. 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.

You should use the index zero (0)

1 Like