marijnh / Eloquent-JavaScript

The sources for the Eloquent JavaScript book
https://eloquentjavascript.net
3.01k stars 793 forks source link

Update 6.3 solution to match code from 6.2 #447

Closed Putnam14 closed 6 years ago

Putnam14 commented 6 years ago

In the solution for 6.2 you used the 'this.has(value)' method, instead of 'this.members.includes(value)' in the 'add(value)' method.

The code should be consistent considering the exercise says: // Your code here (and the code from the previous exercise)