Hello everyone!
I’m trying to understand why my code is not valid even when the result is the expected. Probably I’m missing something but I cannot identify what it could be yet.
“filteredList” content is correct, but somehow the system doesn’t consider it as a correct answer. I’d appreciate your comments.
var temp = watchList.map(movie => ({
title: movie["Title"],
rating: parseFloat(movie["imdbRating"])
}));
var filteredList = temp.filter(movie => movie.rating > 8);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
.
Challenge: Use the filter Method to Extract Data from an Array
Link to the challenge: