Last active
April 27, 2020 13:44
-
-
Save essamamdani/3a67462d3a38b03e0cb2e15fc544a107 to your computer and use it in GitHub Desktop.
adding single and multiple values in a set in JS
This file contains 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
var setA = new Set(); | |
setA.add(“maps”); | |
setA.add("maps").add("filters").add("generators").add("arrow functions"); | |
console.log(setA.size) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment