Working with JavaScript Sets
Medium
3
81.8% Acceptance
In this lab, you'll be practicing with JavaScript Sets. Sets are a built-in object that allows you to store unique values of any type. You'll create a Set, add elements to it, and implement two helper functions, union
and intersection
, that take sets and return the union or intersection of the input sets. Make sure to export these functions using ESM syntax.