FrontendInterviews.dev

638. Set Uniqueness for NaN

Easy•

Predict the output.

const s = new Set([NaN, NaN])
console.log(s.size)

What is the correct output/behavior?

Select an option and submit your answer.
Next Problem