Functional Programming - Use the map Method to Extract Data from an Array

Tell us what’s happening:

Your code so far

const ratings = watchList.map(({title, rating}, index, arr) => {
  return "title: " + arr[index]["Title"] + ", rating: " + arr[index]["imdbRating"];
});

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36

Challenge: Functional Programming - Use the map Method to Extract Data from an Array

Link to the challenge:

You don’t want to return a string, you want to return an object.

1 Like

Thank you! That helped me quite a bit!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.