Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd736814

Browse files
committed
adding set and map video
1 parent0f55e22 commitd736814

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

‎README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
-[Linear & Binary Search](https://github.com/Vishal-raj-1/DSA-In-JS-With-Vishal/blob/main/Searching%20Algorthims/README.md)
3232
-[Objects](https://github.com/Vishal-raj-1/DSA-In-JS-With-Vishal/blob/main/Objects/README.md)
3333
-[Sorting](https://github.com/Vishal-raj-1/DSA-In-JS-With-Vishal/blob/main/Sorting/README.md)
34+
-[Set & Map](https://github.com/Vishal-raj-1/DSA-In-JS-With-Vishal/tree/main/Set%20%26%20Map)
3435

3536
##Upcoming Topics
3637

‎Set & Map/README.md‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#Map, WeakMap, Set, WeakSet in JavaScript
22

3+
<palign="center">
4+
<ahref="https://youtube.com/live/oxpVW_HSqvM">
5+
<imgsrc="https://img.youtube.com/vi/oxpVW_HSqvM/0.jpg"alt="Set & Map In JavaScript" />
6+
</a>
7+
</p>
8+
39
##Set in #"diff-284056a9ae2d1ce048c69514c969377a31a62c6177d9de53255cca5a5abefcfa-4-10-0" data-selected="false" role="gridcell" tabindex="-1" valign="top">4
10

511
```javascript
@@ -36,11 +42,11 @@ mySet.clear();
3642
constmyMap=newMap();
3743

3844
// Adding key-value pairs to the Map
39-
myMap.set("name","John");
40-
myMap.set("age",30);
45+
myMap.set("name","Vishal");
46+
myMap.set("age",21);
4147

4248
// Getting a value using a key
43-
console.log(myMap.get("name"));//John
49+
console.log(myMap.get("name"));//Vishal
4450

4551
// Checking if a key exists
4652
console.log(myMap.has("age"));// true

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp