10 ways to use the spread operator in JavaScript 👨‍💻💯

preview_player
Показать описание
In this video I'm gonna show you how to use a spread operator in 10 examples.

Timestamps:
0:00 Intro
0:39 Copy an array
1:26 Combine arrays
3:02 Add an item to an array
4:03 Adding a property to an object
4:51 Use Math() functions
6:23 Spread array as function arguments
7:22 Pass unlimited arguments to a function
8:01 Converting a nodeList into an array
9:19 Destructuring an object
10:23 Exploding a string
10:53 Outro
Рекомендации по теме
Комментарии
Автор

Hello, Thank you and greetings from Bulgaria.
I think young man that when we have cases for converting set of something into an array then the same operator (same syntax - 3 dots) is called Rest.
It is still very confusing to me. So that is why I said - I think ...
Have a great time.

mocococo
Автор

Does queryselector all defaultly gives an array...isn't it

LuffyMonkey-xcqb
Автор

You explained very good thanks and keep publishing new contents in js 👍

ngames
visit shbcf.ru