Tell us what’s happening:
Unable to understand a syntax.
Your code so far
In the solution, the ‘add’ step has this.has(element)
But this doesn’t check inside the ‘dictionary’ type; I original code had this.dictionary.has(element)
I wonder how the given solution is correct and mine wrong. Any correct syntax/logic leeds?
Your browser information:
User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
Challenge: Data Structures - Create a Set Class
Link to the challenge: