I do not understand why this solution works perfectly with my code editor and not with the freecodecamp
let filteredList = watchList.map(item => ({Title:item["Title"],rating:item["imdbRating"]}));
filteredList = filteredList.filter(item => item["rating"] > 8);
console.log(filteredList);
while the freecodecamp solution
var filteredList = watchList.map(function(e) {
return {title: e["Title"], rating: e["imdbRating"]}
}).filter((e) => e.rating >= 8);
console.log(filteredList);
return exactly the same table to my code editor and Google Chrome browser.
but on the other hand works perfectly with Fcc