Arrays - Reading Assignment

1. What do arrays allow us to do?

An array can store multiple separate pieces of data in the same variable and can be indexed as follows eg.

x[0] x[1] x[2]

Arrays are useful in loops as the index notification can be easily incremented to move through the data.

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 acces multiple values in one variable.
  2. in order to acces the the first element you place [0] after the variable which contains the array.
1 Like
  1. What do arrays allow us to do?
    its a variable that allow us to store multiple values of the same type in one.
  2. What index should you use in order to access the first element in an array?
    index 0, position 0…
1 Like
  1. An array object allows us to store multiple values in a variable. A collection of variables of the same type.
  2. 0
1 Like
  1. What do arrays allow us to do?
    Arrays store same type parameters in single variable.

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

1 Like
  1. What do arrays allow us to do?
    The Array object lets you store multiple values in a single variable (or binding). It stores a fixed-size sequential collection of elements of the same type.

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

1 Like

Arrays – Reading Assignment**

  1. What do arrays allow us to do?**
  • An array allows us to stores a sequence of values that are all of the same type.
  • Also an array allows us to quickly access each individual value.
  1. What index should you use in order to access the first element in an array?

Array indexes start with 0. The first element is [0] and the second element is [1].

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

I can save multiple items of the same type within a array.

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

To access the first element within a array, then you need to get the 0th position.
I.E.:
var myArray = new Array(“obj1”, “obj2”, “obj3”);
console.log(myArray[0]);

Cheers

1- What do arrays allow us to do?

Arrays alow us to put many values into a single variable.

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

İndex 0

  1. Arrays allow us to store a set of variables of the same type.
  2. 0; call it by this format: anArray[0]; The index of array elements (same as characters in a string) is assigned position starting from 0, up to length of array minus 1.

1.To store multiple values in single variable
ex: var fruits=[“apple”, “orange”, “mango”]

  1. for accessing 1st element of an array we should use 0 index
    ex: fruits[0]

What do arrays allow us to do?

  • Arrays allow us to store multiple values in a single variable.

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

  • You should use index 0 to get the first element in an array.

1)allows us to store more than one value in a variable.
2) index 0 is the first value in the array.

1- What do arrays allow us to do?
Arrays allow us to collect a predifined number objects from the same type in one collection;

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

  1. What do arrays allow us to do? –
    Arrays allow us to assign multiple values to one single variable.

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

  1. What do arrays allow us to do?

var nameofvariable = new ARRAY [“0”,“1”,“2”, etc]

You can take out the new ARRAY thing if you use the square brackets thing.

Arrays allow us to assign multiple values to one variable using the aformentioned format. Each of the assigned values has an ordered ID number to it, starting with 0.

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

Always start with 0.

What do arrays allow us to do?
To store attributes/values for a variable, var colors = new Array( “red”,“blue”,“green”);

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

  1. What do arrays allow us to do?
    Store data in a very accessible way

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

  1. Arrays lets us store multiple values within a single variable.
  2. The index to use in order to access the first element in a array is 0

Arrays

What do Arrays alow us o do;

An Array object lets you store multiple values in a single variable.

What index should you use in order to acces the first element in an array;

Indexof