Help me! Why the results doesn't output detail!

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

yupp I passed the test, but my problem is why the console didn’t show the result like I want :rofl::rofl::rofl: Maybe I should accept the way you wrote below. CRTL + SHIFT + J to see the result

lovely, tks bro. It’s really helpful for me .:heart_eyes:

The fcc editor console has some limitations, learn to use the browser console!