unionintermediateconst a = new Set([1, 2])
const b = new Set([2, 3])
const all = a.union(b)
console.log([...all]) // β [1, 2, 3]Use Set.union() to combine two sets into a new set containing all unique values.
union() returns a new Set and does not modify the originals.
Challenge: Verify that original Sets are unchanged after union().