Skip to content

Commit d3ceee0

Browse files
authored
chore: Update README.md
1 parent bed1712 commit d3ceee0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3259,13 +3259,15 @@ letters.has("a");
32593259
32603260
```javascript
32613261
// Create a Set
3262-
const letters = new Set(["a","b","c"]);
3262+
const letters = new Set(["a", "b", "c"]);
32633263

32643264
// List all Elements
32653265
let text = "";
3266-
letters.forEach (function(value) {
3267-
text += value;
3268-
})
3266+
letters.forEach(function(value) {
3267+
text += value + " ";
3268+
});
3269+
3270+
console.log(text.trim()); // Output: "a b c"
32693271
```
32703272
32713273
**values** - Returns an iterator with all the values in a Set

0 commit comments

Comments
 (0)