Skip to content

Commit

Permalink
Merge pull request #145 from LaunchCodeEducation/mike-issue-37
Browse files Browse the repository at this point in the history
Fixed typo and terminology on rest parameters
  • Loading branch information
johncfrauen-lc101 authored Sep 6, 2024
2 parents b389269 + 878271b commit 20f6717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/modern-js/reading/es6-syntax/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()`?
Expand Down

0 comments on commit 20f6717

Please sign in to comment.