Here, we will continue to look at the rest parameters and rest pattern. The rest pattern allows us to collect values and condense them into an array. When used inside of a function, our function can take an indefinite amount of parameters.
0:00 MDN rest parameters
2:06 sum function with spread operator
4:17 sum function with rest parameters
9:17 menu items function with rest parameters
JavaScript Playlist:
• JavaScript for Beginners
MDN rest parameters:
https://developer.mozilla.org/en-US/d...
MDN Spread Syntax:
https://developer.mozilla.org/en-US/d...
MDN Destructuring Assignment:
https://developer.mozilla.org/en-US/d...
NodeJS:
nodejs.org
VS Code:
code.visualstudio.com