Skip to content

Map and Set #405

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Dec 20, 2023
Next Next commit
translate introduction
  • Loading branch information
gabifs committed Sep 21, 2023
commit 65377ed336dd7a6ee998a49b29acb4ed483e2a68
12 changes: 6 additions & 6 deletions 1-js/05-data-types/07-map-set/article.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@

# Map and Set
# Map e Set

Till now, we've learned about the following complex data structures:
Até agora, aprendemos sobre as seguintes estruturas de dados complexas:

- Objects are used for storing keyed collections.
- Arrays are used for storing ordered collections.
- Objetos são usados para armazenar coleções indexadas.
- Arrays são usados para armazenar coleções ordenadas.

But that's not enough for real life. That's why `Map` and `Set` also exist.
Mas isso não é suficiente para a vida real. É por isso que `Map` e `Set` também existem.

## Map

Expand Down Expand Up @@ -78,7 +78,7 @@ visitsCountObj[john] = 123; // try to use john object as the key, ben object wil

*!*
// That's what got written!
alert( visitsCountObj["[object Object]"] ); // 123
alert( visitsCountObj["[object Object]"] ); // 123
*/!*
```

Expand Down