Answer matches with the given output but console showing wrong Answer filter challenge

It is showing the answer is incorrect but it matches with the required output

var filteredList;
const newArray = watchList.map(({Title: title, imdbRating: ratings} )=> ({title, ratings}));
console.log(newArray);
filteredList = newArray.filter(rating => rating.ratings >= 8.0)

Challenge: Use the filter Method to Extract Data from an Array

Link to the challenge:

The property should be rating not ratings

1 Like

It worked but why it is that way I can name them whatever I want right?

OHh, I get it the answer contains rating property not ratings.

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