so this question ask us to Use a combination of filter
and map
to return a new array to there spec, easy enough now it adds this curve ball:
Note that the rating values are saved as strings in the object and you may want to convert them into numbers to perform mathematical operations on them.
ok so i did the first part
filteredList = watchList
.filter( (rating) => (rating["imdbRating"] >= 8.0))
.map( (value) => ({"title":value["Title"],"rating":value["imdbRating"]}))
and checked the object in the browser console and it worked so i pressed go next to see if it was ok as javascript converts stuff when it can by itself it didnt pass i spent 20minutes thinking ok how the hell to i go into the object to though the keys and edit on of the values and then i saw i had a caps on the Title, changed it to a lower case and it did pass LOL!
i checked soulation afterwards like i always do and the soulation didnt have any converting of string to int either so first off i think is that there just to confuse us? second off how would i go about doing such a task
would it be something along the lines of a for in loop using hasOwnProp === rating and then converting it with number() or parseFloat()?