Skip to content

Commit 10b1fb0

Browse files
committed
translate task 3
1 parent 32aecc4 commit 10b1fb0

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

1-js/05-data-types/07-map-set/03-iterable-keys/solution.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11

2-
That's because `map.keys()` returns an iterable, but not an array.
3-
4-
We can convert it into an array using `Array.from`:
2+
Isso ocorre porque `map.keys()` retorna um objeto iterável, mas não um array.
53

4+
Podemos convertê-lo em um array usando `Array.from`:
65

76
```js run
87
let map = new Map();

1-js/05-data-types/07-map-set/03-iterable-keys/task.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
importance: 5
1+
importancia: 5
22

33
---
44

55
# Iterable keys
66

7-
We'd like to get an array of `map.keys()` in a variable and then apply array-specific methods to it, e.g. `.push`.
7+
Gostaríamos de obter um array de `map.keys()` em uma variável e, em seguida, aplicar métodos específicos de array a ele, como `.push`.
88

9-
But that doesn't work:
9+
Mas isso não funciona:
1010

1111
```js run
1212
let map = new Map();
@@ -21,4 +21,4 @@ keys.push("more");
2121
*/!*
2222
```
2323

24-
Why? How can we fix the code to make `keys.push` work?
24+
Por quê? Como podemos corrigir o código para fazer com que `keys.push` funcione?

0 commit comments

Comments
 (0)