What does adding a value to the set make possible later? Goal: Store a value so a later check can recognize it.
A set remembers which values appeared earlier.
Before the final value, ask whether that value is already stored.
1// Goal: Store a value so a later check can recognize it.2function starterExample() {3const seen = new Set();4seen.add(5);5}
What does adding a value to the set make possible later?