From d8d93e38e0a95737883a795c012c8a618c8bf6f1 Mon Sep 17 00:00:00 2001 From: NetMan <13informatyka14@gmail.com> Date: Thu, 11 Jan 2024 21:44:48 +0100 Subject: [PATCH] Passed test (all) in exercise 11 --- 11_getTheTitles/getTheTitles.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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