JavaScript Set Methods Flashcards

1
Q

add(val)

A

Adds new element to the set

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

has(val)

A

Checks if the val is in the set

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

delete(val)

A

deletes an element from set

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

clear()

A

removes all the elements

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

size

A

Returns the numbers of elements in a set

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