Skip to content

Commit 00d8b63

Browse files
committedMay 19, 2019
minor
1 parent dd106ba commit 00d8b63

File tree

1 file changed

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

1 file changed

+1
-2
lines changed
 

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ importance: 4
44

55
# Get average age
66

7-
Write the function `getAverageAge(users)` that gets an array of objects with property `age` and gets the average.
7+
Write the function `getAverageAge(users)` that gets an array of objects with property `age` and returns the average age.
88

99
The formula for the average is `(age1 + age2 + ... + ageN) / N`.
1010

@@ -19,4 +19,3 @@ let arr = [ john, pete, mary ];
1919

2020
alert( getAverageAge(arr) ); // (25 + 30 + 29) / 3 = 28
2121
```
22-

0 commit comments

Comments
 (0)
Please sign in to comment.