Use the filter method to extract date from an array. Cant figure out what is wrong

I cannot for the life of me figure out what is wrong with my code for this challenge.
var filteredList = watchList.filter(x => parseInt(x.imdbRating) >= 8.0).map(x => ({ title: x.title, rating: x.imdbRating}));

I have tried and tweaked the brackets and yet still. It just keeps printing out : [{…}, {…}, {…}, {…}]
I dont know why the elements are empty

figured it out. the t in x.title was small

1 Like