Here, we will learn about the spread syntax or spread operator (...) in JavaScript. The spread operator will allow for an iterable like an array or a string to be unpacked in places where comma separated values are expected. This could be for building a new array or passing in values during a function call. Additionally, we will see that we can use the spread operator to make a shallow copy of an object or array.
0:00 Spread syntax definition from MDN
1:07 Rest syntax vs spread syntax
1:40 Using the spread syntax to copy the elements of an array
5:15 Using the spread syntax to combine two or more arrays
7:24 Using the spread syntax to make a shallow copy of an array
10:25 Using the spread syntax with strings
11:27 Using the spread syntax with arguments for function calls example #1
13:27 Using the spread syntax with arguments for function calls example #2
14:50 Using the spread syntax with objects
JavaScript Playlist:
• JavaScript for Beginners
MDN Spread Syntax:
https://developer.mozilla.org/en-US/d...
NodeJS:
nodejs.org
VS Code:
code.visualstudio.com
Смотрите видео JavaScript for Beginners #61 Spread Syntax онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь GreeneMath.com 29 Март 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 271 раз и оно понравилось 11 людям.