Hey, I’m trying to figure out why my code works with VS Code running in Chrome console, but not passing FCC tests.
var filteredList, mappedList;
mappedList = watchList.map(x => ([{'title': x.Title, 'rating': x.imdbRating}]));
filteredList = mappedList.filter(y => parseFloat(y[0].rating) >= 8.0);
// Add your code above this line
console.log(filteredList);
I’ve tried changing simple syntax things in the map() function, by adding parentheses, removing the brackets, etc… but I can’t get it to pass the test. It works in the Chrome console: