I feel that I basically solved this, with the minor issue of the object property not being in quotes. Here is my code and the result:
// Only change code below this line
var mappedList;
mappedList = watchList.map(function(movie) {
return {title: movie.Title,rating: movie.imdbRating};
});
var filteredList;
filteredList = mappedList.filter(function(movie){
return movie.rating>8.0;
});
// Only change code above this line
[ { title: ‘Inception’, rating: ‘8.8’ },
{ title: ‘Interstellar’, rating: ‘8.6’ },
{ title: ‘The Dark Knight’, rating: ‘9.0’ },
{ title: ‘Batman Begins’, rating: ‘8.3’ },
{ title: ‘Avatar’, rating: ‘7.9’ } ]
What is the problem here?