{"ScriptPreparationCode":"var list=[\r\n {name: \u0027terry\u0027, clubs: {morning: \u0022science\u0022, evening: \u0022math\u0022} },\r\n {name: \u0027torry\u0027, clubs: {morning: \u0022farm\u0022, evening: \u00223test\u0022}},\r\n {name: \u0027tori\u0027, clubs: {morning: \u0022social\u0022, evening: \u0022test2\u0022}},\r\n {name: \u0027teri\u0027, clubs: {morning: \u0022home\u0022, evening: \u0022test\u0022}},\r\n {name: \u0027\u0027, clubs: {morning: \u0022sports\u0022, evening: \u0022fitness\u0022}}\r\n ]\r\n var listItems = [] \r\n","TestCases":[{"Name":"for loop","Code":"const test = (item) =\u003E item.name\r\nfunction testLoop(list) {\r\n for(let i = 0; i \u003C list.length; i\u002B\u002B){\r\n \tlistItems.push(test(list[i]))\r\n }\r\n return listItems\r\n }\r\nconsole.log(testLoop(list))","IsDeferred":false},{"Name":"map","Code":" listItems = list.map((item) =\u003E item.name)\r\n console.log(listItems)","IsDeferred":false}]}