diff --git a/curriculum/challenges/english/25-front-end-development/workshop-recipe-tracker/66fbcf750a62784cf11f5632.md b/curriculum/challenges/english/25-front-end-development/workshop-recipe-tracker/66fbcf750a62784cf11f5632.md index 6d190332d16..cc6ad0bef02 100644 --- a/curriculum/challenges/english/25-front-end-development/workshop-recipe-tracker/66fbcf750a62784cf11f5632.md +++ b/curriculum/challenges/english/25-front-end-development/workshop-recipe-tracker/66fbcf750a62784cf11f5632.md @@ -88,7 +88,7 @@ recipes.push(recipe1, recipe2, recipe3); function getAverageRating(ratings) { const total = ratings[0] + ratings[1] + ratings[2] + ratings[3]; - return total / ratings.length.toFixed(2); + return total / ratings.length; } --fcc-editable-region-- diff --git a/curriculum/challenges/english/25-front-end-development/workshop-recipe-tracker/66fbcf750a62784cf11f5633.md b/curriculum/challenges/english/25-front-end-development/workshop-recipe-tracker/66fbcf750a62784cf11f5633.md index 7056df9e9ba..2ba7e554c0a 100644 --- a/curriculum/challenges/english/25-front-end-development/workshop-recipe-tracker/66fbcf750a62784cf11f5633.md +++ b/curriculum/challenges/english/25-front-end-development/workshop-recipe-tracker/66fbcf750a62784cf11f5633.md @@ -93,7 +93,7 @@ recipes.push(recipe1, recipe2, recipe3); function getAverageRating(ratings) { const total = ratings[0] + ratings[1] + ratings[2] + ratings[3]; - return total / ratings.length.toFixed(2); + return total / ratings.length; } function getTotalIngredients(ingredients) { diff --git a/curriculum/challenges/english/25-front-end-development/workshop-recipe-tracker/66fbcf750a62784cf11f5634.md b/curriculum/challenges/english/25-front-end-development/workshop-recipe-tracker/66fbcf750a62784cf11f5634.md index 5a7a433c865..c07e8f739de 100644 --- a/curriculum/challenges/english/25-front-end-development/workshop-recipe-tracker/66fbcf750a62784cf11f5634.md +++ b/curriculum/challenges/english/25-front-end-development/workshop-recipe-tracker/66fbcf750a62784cf11f5634.md @@ -110,7 +110,7 @@ recipes.push(recipe1, recipe2, recipe3); function getAverageRating(ratings) { const total = ratings[0] + ratings[1] + ratings[2] + ratings[3]; - return total / ratings.length.toFixed(2); + return total / ratings.length; } function getTotalIngredients(ingredients) { diff --git a/curriculum/challenges/english/25-front-end-development/workshop-recipe-tracker/66fbcf750a62784cf11f5635.md b/curriculum/challenges/english/25-front-end-development/workshop-recipe-tracker/66fbcf750a62784cf11f5635.md index 48de8959671..14581fc4ee4 100644 --- a/curriculum/challenges/english/25-front-end-development/workshop-recipe-tracker/66fbcf750a62784cf11f5635.md +++ b/curriculum/challenges/english/25-front-end-development/workshop-recipe-tracker/66fbcf750a62784cf11f5635.md @@ -90,7 +90,7 @@ recipes.push(recipe1, recipe2, recipe3); function getAverageRating(ratings) { const total = ratings[0] + ratings[1] + ratings[2] + ratings[3]; - return total / ratings.length.toFixed(2); + return total / ratings.length; } function getTotalIngredients(ingredients) { diff --git a/curriculum/challenges/english/25-front-end-development/workshop-recipe-tracker/66fbcf750a62784cf11f5636.md b/curriculum/challenges/english/25-front-end-development/workshop-recipe-tracker/66fbcf750a62784cf11f5636.md index 8f45a98cbd6..63ce986650c 100644 --- a/curriculum/challenges/english/25-front-end-development/workshop-recipe-tracker/66fbcf750a62784cf11f5636.md +++ b/curriculum/challenges/english/25-front-end-development/workshop-recipe-tracker/66fbcf750a62784cf11f5636.md @@ -88,7 +88,7 @@ recipes.push(recipe1, recipe2, recipe3); function getAverageRating(ratings) { const total = ratings[0] + ratings[1] + ratings[2] + ratings[3]; - return total / ratings.length.toFixed(2); + return total / ratings.length; } function getTotalIngredients(ingredients) { diff --git a/curriculum/challenges/english/25-front-end-development/workshop-recipe-tracker/66fbcf750a62784cf11f5637.md b/curriculum/challenges/english/25-front-end-development/workshop-recipe-tracker/66fbcf750a62784cf11f5637.md index 032cb8cd781..7ab2bf6e9b0 100644 --- a/curriculum/challenges/english/25-front-end-development/workshop-recipe-tracker/66fbcf750a62784cf11f5637.md +++ b/curriculum/challenges/english/25-front-end-development/workshop-recipe-tracker/66fbcf750a62784cf11f5637.md @@ -62,7 +62,7 @@ recipes.push(recipe1, recipe2, recipe3); function getAverageRating(ratings) { const total = ratings[0] + ratings[1] + ratings[2] + ratings[3]; - return total / ratings.length.toFixed(2); + return total / ratings.length; } function getTotalIngredients(ingredients) { @@ -144,7 +144,7 @@ recipes.push(recipe1, recipe2, recipe3); function getAverageRating(ratings) { const total = ratings[0] + ratings[1] + ratings[2] + ratings[3]; - return (total / ratings.length).toFixed(2); + return total / ratings.length; } function getTotalIngredients(ingredients) {