Functional Programming: Use the Filter Method to Extract Data from an Array not sure what is wrong

Can someone help me with this?

https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/functional-programming/use-the-map-method-to-extract-data-from-an-array/

var rating = watchList.map(x => {
return {title: x.Title, rating:x.imbaRating}
});

You want to use an anonymous function within the map. What you have is very close.

let rating = watchList.map(movie => {
  return { title: , rating: }
});

You’ve misspelled “imdb”

1 Like

Thank you! Sorry about this but Dyslexic here :slight_smile:

1 Like