In your first example, you’ve mapped the imdbRating to a completely new property, rating. So when you then filter by imdbRating, a now-nonexistent property…
Oh, I think I know the reason. The first code did not work because it executed the map() first instead of filter(), so the filter() could not find the property “imdbRating” because it has been changed to “rating”. I mistakenly thought the javascript executed the filter() first then map(). Thank you for the help.