I am doing the Functional Programming: Use the map Method to Extract Data from an Array challenge and I am stumped. I can get an output but everything I try that shows results always looks like this and fails the last check,
“[{“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”}]”
I have tried using the solutions on the hint page, I tried looking for solutions on the forms and on other websites. I even tried watching youtube videos to see if I am missing a step. I can see that when they put the code in it works for them, but not for me. Is it possible that its a browser issue? I am using chrome.
At this point, I have been trying for 2 days to get this working, but I don’t know what else I can try. I am going to have to skip this one and go on to the next.
Here is the current code I am using.
const rating= watchList.map(item => ({
title: item[“Title”],
rating: item[“imdbRating”]
}));