Created
June 22, 2018 13:09
-
-
Save nairihar/5d2e31a3d8c338ae9c02ab3853c38f80 to your computer and use it in GitHub Desktop.
JavaScript series, part 1, Set, medium
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mySet = new Set(); | |
mySet.add(1); | |
mySet.add(2); | |
mySet.add(3); | |
mySet.clear(); | |
mySet.add(4); | |
console.log(...mySet); | |
// 4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment