A Set is not an array, so it must be spread before joining.
Acceptance criteria
- 1.#out should show 1,2,3.
A Set is not an array, so it must be spread before joining.
const numbers = [1, 2, 2, 3, 3, 3]; const unique = new Set(numbers); document.querySelector('#out').textContent = typeof unique.join === "function" ? unique.join(",") : "a Set has no join";
Output ready when you are
Press Run to render your code, or Submit to validate your solution.