Arrays - Reading Assignment

#61
  1. Arrays allow us to store sequences of data.
  2. First element always has index 0
0 Likes

#62
  1. What do arrays allow us to do?
    An array object allows you 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 index 0 is used to access the first element in an array.

0 Likes

#63
  1. What do arrays allow us to do?

Arrays allow for a convenient way to store sequences of values.

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

The first element of an array is index by 0.

0 Likes

#64
  1. Array is an object which consist of multiple values of a same type in a single variable,
  2. An array start with the index 0
0 Likes

#65
  1. store more values in a variable
    1. The index starts counting from 0, so if you want to get the Nth element, the index will be N-1
0 Likes

#66
  1. In an array we can store a fixed-size number of values in one variable.
  2. array[0] will access the first element in an array.
0 Likes

#67

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 in an array is at index 0.

0 Likes

#68

JavaScript Arrays reading assignment

(galactic conspiracy revealed)

What do arrays allow us to do?

  • With an array we can store multiple values in a single variable. This is “a collection of data”, but is actually “a collection of variables of the same type.”
  • Effectively, all strings are also arrays!
  • There are numerous ‘methods’ that can be applied to arrays, such as filtering, joining, or testing every member (of the array) with a boolean test, also sorting, adding and removing elements.

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

  • The first element of an array or of a string can be accessed by the index integer in square brackets (following the string in quotes or the variable binding name (without brackets)) such as arrayNameOrString[0].
  • ZERO is used for the first of anything in computer programming, because the original programmers were lazy, shape-shifting alien reptilians participating in a galactic conspiracy to explode the brains of all earthlings who have learned to count, and thence to feed upon the brains and take over the world!
3 Likes

#69

“The maximum length allowed for an array is 4,294,967,295.”, but I guess that as strings are also arrays, this limit might be reached when the length of the contained strings and arrays are all added together. Maybe you should try it. We have the computing power now, to create a greater than 4.3 GB file, so, a single array in that? You do it, while I proceed with the next assignment! :wink:

1 Like

#70

Ask Steve Wozniak! :wink:

0 Likes

#71

What do arrays allow us to do?
Store together a set of values of the same type

What index should you use in order to access the first element in an array?
It’s 0 based

0 Likes

#72

What do arrays allow us to do?
Allow us to manipulate lists of data. It is useful because we can store data
that is of the same kind.

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

0 Likes

#73
  1. An array is a variable which holds more than 1 value of the same type. The syntax is different values to be stored in the array are between [ ] square brackets and each unique value is separated with a , comma. You can reference the position of a value in an array by passing in an index number into the array definition. You can also manipulate arrays with several different JavaScript native methods.

  2. Zero

0 Likes

#74
  1. Arrays can store large series of objects therefore allow us to create complex data structures.

  2. 0

0 Likes

#75
  1. An array allows us to store multiple values in a single variable.
  2. The first element of an array is accessed via the 0 index
0 Likes

#76

What do arrays allow us to do?
allows us to store a collection of variables of the same type into a single variable

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

0 Likes

#77
  1. Arrays allow us to store multiple values under one variable.
  2. 0
0 Likes

#78

Arrays allow us to store multiple values in a single variable. Arrays store a sequence of data.
The first index of an array is zero, not 1.

0 Likes

#79
  1. Arrays are just a kind of object specialized for storing sequences of things.

  2. 0

0 Likes

#80

What do arrays allow us to do?
An array allows us to store multiple values in a single variable.

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

0 Likes