differenceintermediateconst a = new Set([1, 2, 3, 4])
const b = new Set([3, 4, 5])
const diff = a.difference(b)
console.log([...diff]) // β [1, 2]Use Set.difference() to get elements in the first set that are not in the second.
setA.difference(setB) returns a new Set with elements in A but not in B.
Challenge: Verify the difference of two Sets.