Exerpad
Exercise 3 · Chapter: SetsRequired+50 XP

Fix the Set

This program should count the unique colors, but it's not actually creating a set. Fix it!

Expected output:

3
Need a hint?
3 available · costs 5 XP each
javascript
let colors = ["red", "blue", "red", "green", "blue"];
let unique = [colors];
console.log(unique.length);
Output
Run your code to see the output here.