Unique Visitors
JavaScript
10 pts
Unique Visitors
The array visitors lists everyone who visited the computer room today. Create a Set called uniqueVisitors from it, then print the Set and its size. Expected output:
Set(4) { "Selam", "Abel", "Ruta", "Yonas" }
4
Checklist
- Create the Set
uniqueVisitorsfrom thevisitorsarray. - Print the Set and its size.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
