JavaScript Arrays Properties and Essential Methods Flashcards
1
Q
pop()
A
removes the last item from the array
2
Q
shift()
A
removes the first item from an array
3
Q
push()
A
adds an item to the end of an array
4
Q
unshift ()
A
adds an item to the beginning of an array
5
Q
What number do arrays start counting with?
A
0
6
Q
Are elements are stored in arrays?
A
Elements are stored in array’s
7
Q
is used to store multiple values in a single variable:
A
The Array object
8
Q
constructor
A
Returns the function that created the Array object’s prototype
9
Q
length
A
Sets or returns the number of elements in an array
10
Q
prototype
A
Allows you to add properties and methods to an Array object
11
Q
Elements
A
are stored in arrays
12
Q
Arrays use
A
[] brackets