We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bed1712 commit d3ceee0Copy full SHA for d3ceee0
README.md
@@ -3259,13 +3259,15 @@ letters.has("a");
3259
3260
```javascript
3261
// Create a Set
3262
-const letters = new Set(["a","b","c"]);
+const letters = new Set(["a", "b", "c"]);
3263
3264
// List all Elements
3265
let text = "";
3266
-letters.forEach (function(value) {
3267
- text += value;
3268
-})
+letters.forEach(function(value) {
+ text += value + " ";
+});
3269
+
3270
+console.log(text.trim()); // Output: "a b c"
3271
```
3272
3273
**values** - Returns an iterator with all the values in a Set
0 commit comments