Skip to content

Commit d736814

Browse files
committed
adding set and map video
1 parent 0f55e22 commit d736814

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+
<p align="center">
4+
<a href="https://youtube.com/live/oxpVW_HSqvM">
5+
<img src="https://img.youtube.com/vi/oxpVW_HSqvM/0.jpg" alt="Set & Map In JavaScript" />
6+
</a>
7+
</p>
8+
39
## Set in JavaScript:
410

511
```javascript
@@ -36,11 +42,11 @@ mySet.clear();
3642
const myMap = new Map();
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy