diff --git a/11_getTheTitles/getTheTitles.js b/11_getTheTitles/getTheTitles.js index 74b04df..3698949 100644 --- a/11_getTheTitles/getTheTitles.js +++ b/11_getTheTitles/getTheTitles.js @@ -1,5 +1,8 @@ -const getTheTitles = function() { - +const getTheTitles = function(array) { + const titles = array.map((obj) => { + return obj.title; + }) + return titles; }; // Do not edit below this line