Skip to content

Commit 04c309e

Browse files
author
Adria Vieira
committed
average-age task translated
1 parent b464660 commit 04c309e

File tree

1 file changed

+4
-4
lines changed
  • 1-js/05-data-types/05-array-methods/10-average-age

1 file changed

+4
-4
lines changed

1-js/05-data-types/05-array-methods/10-average-age/task.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ importance: 4
22

33
---
44

5-
# Get average age
5+
# Pegar a média de idade
66

7-
Write the function `getAverageAge(users)` that gets an array of objects with property `age` and gets the average.
7+
Escreva a função `getAverageAge(users)` que recebe um array de objetos com a propriedade `age` e pega a média entre eles.
88

9-
The formula for the average is `(age1 + age2 + ... + ageN) / N`.
9+
A fórmula da média é `(age1 + age2 + ... + ageN) / N`.
1010

11-
For instance:
11+
Por exemplo:
1212

1313
```js no-beautify
1414
let john = { name: "John", age: 25 };

0 commit comments

Comments
 (0)