I'm trying to use 'typeof'

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”] )

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.