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
Смотрите видео JavaScript for Beginners #63 Rest Parameters онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь GreeneMath.com 02 Апрель 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 440 раз и оно понравилось 14 людям.