From 878271b6d0c6dace7ee25769671622cc207c66b2 Mon Sep 17 00:00:00 2001 From: Michael Lambert Date: Thu, 5 Sep 2024 21:56:21 -0400 Subject: [PATCH] Fixed typo and terminology on rest parameters --- content/modern-js/reading/es6-syntax/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/modern-js/reading/es6-syntax/index.md b/content/modern-js/reading/es6-syntax/index.md index 6d7a5096..260f5c70 100644 --- a/content/modern-js/reading/es6-syntax/index.md +++ b/content/modern-js/reading/es6-syntax/index.md @@ -117,7 +117,7 @@ Now each user's logged miles for hikes are saved in arrays for each week. The mi This way we don't have to loop through `milesHikedThisWeek` to pass all seven values to `findWeeklyTotal()`. We can just use the spread operator! {{% notice orange "Warning" "rocket" %}} - You may be tempted to try and use the spread operator in function arguments, but doing so will make the item a rest parameter. To learn mroe about rest parameters and how they differ from the spread operator, check out this article from [freeCodeCamp](https://www.freecodecamp.org/news/javascript-rest-vs-spread-operators/). + You may be tempted to try and use the spread operator in function parameters, but doing so will make the item a rest parameter. To learn more about rest parameters and how they differ from the spread operator, check out this article from [freeCodeCamp](https://www.freecodecamp.org/news/javascript-rest-vs-spread-operators/). {{% /notice %}} ## To `Map` or not to `map()`?