$ ./guess_the_language
Problem Solving — predict the output
Problem Solving — predict the output · medium · #184
What is the output?
const s = new Set([1, 1, 2]); console.log(s.size);
2
3
1
undefined
A Set keeps one copy of each distinct value, and it exposes size rather than length.
Play Problem Solving ▸
◂ #183
all Problem Solving — predict the output questions
#185 ▸