say you chose to use reduce() to get the average rating. You can use parseFloat to treat the rating strings as decimal numbers directly in your operations. The following can be used like a variable in any other math you need to calculate the average:
parseFloat(movie[“imdbRating”] )