8000 Update ex12_findTheOldest README.md · hellogabor/javascript-exercises@e6c4530 · GitHub
[go: up one dir, main page]

Skip to content

Commit e6c4530

Browse files
authored
Update ex12_findTheOldest README.md
Added clarification to instruct learner to look in test case to understand object structure
1 parent 15f1b82 commit e6c4530

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

12_findTheOldest/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
Given an array of objects representing people with a birth and death year, return the oldest person.
44

5+
Now that you've reached the end of these exercises, you should be fairly comfortable getting the information you need from test case(s). Take a look at how the array of objects is constructed in this exercise's test cases to help you write your function.
6+
57
## Hints
68
- You should return the whole person object, but the tests mostly just check to make sure the name is correct.
7-
- this can be done with a couple of chained array methods, or by using `reduce`.
9+
- This can be done with a couple of chained array methods, or by using `reduce`.
810
- One of the tests checks for people with no death-date.. use JavaScript's Date function to get their age as of today.

0 commit comments

Comments
 (0)
0