Why the results doesn’t output detail !!. It’s only show [object Object]
Link Here:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/functional-programming/use-the-filter-method-to-extract-data-from-an-array
This is my Solution:
var filteredList = watchList.map((e) => ({title: e["Title"], rating: e["imdbRating"]}) ).filter((e) => e.rating >= 8);
And result is: [object Object],[object Object],[object Object],[object Object]
help me that!!! thanks so much
It seems like your code is fine, doesn’t it pass the test?
Try console.log(filteredList)
, with your current code you should get an array of objects.
thanks for your help, but you see may Screen here
@jackhao0105 Are you failing any of the tests?
Did you check your browser’s console (Ctrl+Shft+J in Chrome). I see the following using your code.
1 Like
Check the your browser console as Randell suggested. With your current code you should be able to see an array of objects. I tested it and it passes all the tests, I also checked the console and it displays the right value.
1 Like
lovely, tks bro. It’s really helpful for me .
The fcc editor console has some limitations, learn to use the browser console!