JavaScript for Beginners #61 Spread Syntax

Published: 29 March 2021
on channel: GreeneMath.com
271
11

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


Watch video JavaScript for Beginners #61 Spread Syntax online without registration, duration hours minute second in high quality. This video was added by user GreeneMath.com 29 March 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 271 once and liked it 11 people.