We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd106ba commit 00d8b63Copy full SHA for 00d8b63
1 file changed
1-js/05-data-types/05-array-methods/10-average-age/task.md
@@ -4,7 +4,7 @@ importance: 4
4
5
# Get average age
6
7
-Write the function `getAverageAge(users)` that gets an array of objects with property `age` and gets the average.
+Write the function `getAverageAge(users)` that gets an array of objects with property `age` and returns the average age.
8
9
The formula for the average is `(age1 + age2 + ... + ageN) / N`.
10
@@ -19,4 +19,3 @@ let arr = [ john, pete, mary ];
19
20
alert( getAverageAge(arr) ); // (25 + 30 + 29) / 3 = 28
21
```
22
-
0 commit comments