let rating = watchList.map((item) => ({"title" :item["Title"], "rating": item["imdbRating"]}));
if we do console.log (rating)
we get output as [object Object] so on and so forth. Why am i not able to get desired output?
Please follow the link for the challenge, it was not getting posted conventionally.
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/functional-programming/use-the-map-method-to-extract-data-from-an-array