I am now currently working on Functional Programming. Even though I haven’t used the for loop but still tells me that I have used for loop. Here is my code
let rating = watchList.map(function(x){
return {'title': x.Title, 'rating': x.imdbRating};
});
And here is the question
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/functional-programming/use-the-map-method-to-extract-data-from-an-array
Can anyone tell me what is wrong here ?
Thank You.