Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update 1-js/05-data-types/07-map-set/article.md
Accepted the changes from the review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
  • Loading branch information
ayush007-git and Copilot authored Nov 13, 2025
commit 71394cb5d2b9b6d0f37e903aa665b0bff5e9411f
4 changes: 2 additions & 2 deletions 1-js/05-data-types/07-map-set/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ For example:
let map = new Map();
map["1"] = "test"; // adds a property, not a Map entry

console.log(map.get("1")); // undefined
console.log(map["1"]); // "test"
alert(map.get("1")); // undefined
alert(map["1"]); // "test"
```

To properly store and retrieve data in a `Map`, always use its methods:
Expand Down