Beginner
JavaScript
Q29 / 100
What is a Set in JavaScript?
Correct! Well done.
Incorrect.
The correct answer is B) A collection of unique values of any type
B
Correct Answer
A collection of unique values of any type
Explanation
new Set([1,2,2,3]) stores {1,2,3}. Sets support .add(), .has(), .delete(), .size, and are iterable.
Progress
29/100