JavaScript Arrays Properties and Essential Methods Flashcards

1
Q

pop()

A

removes the last item from the array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

shift()

A

removes the first item from an array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

push()

A

adds an item to the end of an array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

unshift ()

A

adds an item to the beginning of an array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What number do arrays start counting with?

A

0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Are elements are stored in arrays?

A

Elements are stored in array’s

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

is used to store multiple values in a single variable:

A

The Array object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

constructor

A

Returns the function that created the Array object’s prototype

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

length

A

Sets or returns the number of elements in an array

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

prototype

A

Allows you to add properties and methods to an Array object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Elements

A

are stored in arrays

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Arrays use

A

[] brackets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly