Help Remove items from a set in ES6

Tell us what’s happening:
Hello there. I´m having trouble passing this test. Is there anything I´m missing here?
Your code so far


function checkSet(){
var set = new Set([1,2,3,4,5]);
Set.delete(2,5); 
 return Set;
 console.log([...Set])
}
 **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36.

Challenge: Remove items from a set in ES6

Link to the challenge:

The delete method for a Set only accepts one argument. You are are passing two arguments, but the second one is ignored.

1 Like

Also check capitalizaton. You should use created set variable instead of Set.

2 Likes

Thanks for the help! I got it now

Thank you! It works now!