Skip to content

Commit 3de659e

Browse files
authored
Merge pull request #286 from werikgpaula/PT-BR-OBJECT-KEYS
Add PT-BR translation of OBJECT-KEYS
2 parents 7fc2546 + be4b232 commit 3de659e

3 files changed

Lines changed: 14 additions & 14 deletions

File tree

i18n/pt-br.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
, "LOOPING THROUGH ARRAYS": "VARRENDO ARRAYS COM LOOP"
1717
, "OBJECTS": "OBJETOS"
1818
, "OBJECT PROPERTIES": "PROPRIEDADES DE OBJETOS"
19+
, "OBJECT KEYS": "CHAVES DE OBJETOS"
1920
, "FUNCTIONS": "FUNÇÕES"
2021
, "FUNCTION ARGUMENTS": "ARGUMENTOS DE FUNÇÕES"
2122
, "SCOPE": "ESCOPO"

problems/object-keys/problem_pt-br.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
JavaScript provides a native way of listing all the available keys of an object. This can be helpful for looping through all the properties of an object and manipulating their values accordingly.
1+
JavaScript nos fornece uma maneira nativa de listar todas as _chaves_ (_keys_) disponiveis de um objeto. Isso pode ser util para iterar em todas as propriedades de um objeto e manipular seus valores.
22

3-
Here's an example of listing all object keys using the **Object.keys()**
4-
prototype method.
3+
Vejamos um exemplo de como podemos listar todas as chaves de um objeto utilizando o método Object.keys():
54

65
```js
76
const car = {
@@ -14,13 +13,13 @@ const keys = Object.keys(car)
1413
console.log(keys)
1514
```
1615

17-
The above code will print an array of strings, where each string is a key in the car object. `['make', 'model', 'year']`
16+
O código acima imprime um array de _strings_, onde cada _string_ é uma _chave_ (_key_) do objeto `car`. `['make', 'model', 'year']`
1817

19-
## The challenge:
18+
## Desafio:
2019

21-
Create a file named `object-keys.js`.
20+
Crie um arquivo chamado `object-keys.js`.
2221

23-
In that file, define a variable named `car` like this:
22+
Dentro desse arquivo, defina uma variavel chamada `car`:
2423

2524
```js
2625
const car = {
@@ -30,14 +29,14 @@ const car = {
3029
}
3130
```
3231

33-
Then define another variable named `keys` like this:
32+
Então defina outra variavel chamada `keys`:
3433
```js
3534
const keys = Object.keys(car)
3635
```
3736

38-
Use `console.log()` to print the `keys` variable to the terminal.
37+
Utilize `console.log()` para imprimir a variavel `keys` no terminal.
3938

40-
Check to see if your program is correct by running this command:
39+
Verifique se seu programa está correto executando este comando:
4140

4241
```bash
4342
javascripting verify object-keys.js
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22

3-
# CORRECT.
3+
# CORRETO.
44

5-
Good job using the Object.keys() prototype method. Remember to use it when you need to list the keys of an object.
5+
Bom trabalho utilizando o método Object.keys(). Lembre-se de utilizar ele quando você precisar listas as propriedades de um objeto.
66

7-
The next challenge is all about **functions**.
7+
O próximo desafio será sobre **functions**.
88

9-
Run `javascripting` in the console to choose the next challenge.
9+
Execute `javascripting` no console para escolher o próximo desafio.
1010

1111
---

0 commit comments

Comments
 (0)