Skip to content

Commit b817a1e

Browse files
committed
changes
1 parent ca2e03d commit b817a1e

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

Set_In_JS.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
let dist=new Set();
2+
3+
dist.add(5);
4+
dist.add(4);
5+
dist.add(2);
6+
dist.add(1);
7+
dist.add(10);
8+
9+
let nums=[1,2,3,4,5,6,7,8,9]
10+
11+
nums.forEach((x)=>{
12+
dist.add(x);
13+
});
14+
15+
console.log(dist);

tempCodeRunnerFile.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
// dist.add(4);
3+
// dist.add(2);
4+
// dist.add(1);
5+
// dist.add(10);

0 commit comments

Comments
 (0)