Hello
This is a challenge I can’t figure out. What is wrong with my code? The console returns an empty array…
The challenge asks you to use the map() and filter() methods to return the titles where the rating is equal or greater than 8.
// Add your code below this line
let filteredList = watchList.map((x) => ({'title': x['Title'],
'rating': x['imdbRating']})).filter((x) => x >= 8);
// Add your code above this line
console.log(filteredList);