Add files via upload
This commit is contained in:
		
							parent
							
								
									d5e6e559cd
								
							
						
					
					
						commit
						6046cee9cd
					
				| 
						 | 
				
			
			@ -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
 | 
			
		||||
module.exports = getTheTitles;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
const getTheTitles = function(array) {
 | 
			
		||||
  return array.map(book => book.title);
 | 
			
		||||
};
 | 
			
		||||
*/
 | 
			
		||||
		Loading…
	
		Reference in New Issue