From e6c4530aa9521155bbdeeea95322998ee2ddbef5 Mon Sep 17 00:00:00 2001 From: Roberra Aklilu <130805303+Roberra0@users.noreply.github.com> Date: Mon, 10 Jul 2023 17:09:29 -0700 Subject: [PATCH 1/2] Update ex12_findTheOldest README.md Added clarification to instruct learner to look in test case to understand object structure --- 12_findTheOldest/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/12_findTheOldest/README.md b/12_findTheOldest/README.md index 92d0bf3..55bbdf5 100644 --- a/12_findTheOldest/README.md +++ b/12_findTheOldest/README.md @@ -2,7 +2,9 @@ Given an array of objects representing people with a birth and death year, return the oldest person. +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. + ## Hints - You should return the whole person object, but the tests mostly just check to make sure the name is correct. -- this can be done with a couple of chained array methods, or by using `reduce`. +- This can be done with a couple of chained array methods, or by using `reduce`. - One of the tests checks for people with no death-date.. use JavaScript's Date function to get their age as of today. From 100f952f7aa9e91d0fe114ea5a4d33790875e141 Mon Sep 17 00:00:00 2001 From: Roberra Aklilu <130805303+Roberra0@users.noreply.github.com> Date: Mon, 10 Jul 2023 17:21:52 -0700 Subject: [PATCH 2/2] Update README.md with minor word change --- 12_findTheOldest/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/12_findTheOldest/README.md b/12_findTheOldest/README.md index 55bbdf5..087f45e 100644 --- a/12_findTheOldest/README.md +++ b/12_findTheOldest/README.md @@ -2,7 +2,7 @@ Given an array of objects representing people with a birth and death year, return the oldest person. -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. +Now that you've reached the final exercise, 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. ## Hints - You should return the whole person object, but the tests mostly just check to make sure the name is correct.