added trailing semicolon to all function and module exports

This commit is contained in:
Michael Frank
2021-05-10 21:27:55 +12:00
parent 58d2eb108a
commit 2f63b3e380
30 changed files with 1770 additions and 7014 deletions
+1 -2
View File
@@ -1,9 +1,8 @@
# Find the Oldest
given an array of objects representing people with a birth and death year, return the oldest person.
Given an array of objects representing people with a birth and death year, return the oldest person.
## 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`.
- One of the tests checks for people with no death-date.. use JavaScript's Date function to get their age as of today.
+2 -2
View File
@@ -1,5 +1,5 @@
const findTheOldest = function() {
}
};
module.exports = findTheOldest
module.exports = findTheOldest;