Merge branch 'master' of TOP/javascript-exercises

This commit is contained in:
Michael Frank
2021-05-09 00:29:44 +12:00
2932 changed files with 302449 additions and 87 deletions
+2 -1
View File
@@ -1,4 +1,4 @@
# Get the Titles!
# GET THE TITLES!
You are given an array of objects that represent books with an author and a title that looks like this:
@@ -24,3 +24,4 @@ getTheTitles(books) // ['Book','Book2']
## Hints
- You should use a built-in javascript method to do most of the work for you!
<Paste>
+3 -3
View File
@@ -1,5 +1,5 @@
const getTheTitles = function() {
var getTheTitles = function(array) {
return array.map(book => book.title)
}
module.exports = getTheTitles;
module.exports = getTheTitles