Add files via upload

This commit is contained in:
reddforman 2022-11-17 10:15:28 -08:00 committed by GitHub
parent d5e6e559cd
commit c84478cc66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 3 deletions

View File

@ -1,6 +1,16 @@
const getTheTitles = function() { const getTheTitles = function(books) {
bookOne = books[0].title;
}; bookTwo = books[1].title;
const bookArray = [bookOne, bookTwo]
return bookArray;
}
// Do not edit below this line // Do not edit below this line
module.exports = getTheTitles; module.exports = getTheTitles;
/*
const getTheTitles = function(array) {
return array.map(book => book.title);
};
*/