entriesintermediateconst s = new Set(['a', 'b'])
for (const [key, val] of s.entries()) {
console.log(key, val) // 'a' 'a', then 'b' 'b'
}Use Set.entries() to iterate over [value, value] pairs; both elements are the same.
Both elements of each entry are identical β entry[0] === entry[1].
Challenge: Verify that entry[0] equals entry[1].