I’m trying to use Set constructor to remove duplicates from the array.
This is an example to show it is not working on fcc challenge console but working in browser console. Please check the image attached below
I’m pretty sure it is “working”, it’s just not printing out pretty in the FCC console (but it is in the browser console as you noted in your image). So don’t let this stop you from using Set in your solution. But if you want to log the contents then you’ll have to look in your browser’s console to see them.
Remember that the FCC console is not the browser console. It is part of the program to intercept and display the stuff being sent to the console, among other things. I guess it doesn’t know how to display a Set. If you feel strongly about it, you could go to the repo and see if there is a bug for it.
For me, I always had the browser console open too.