
Overview
Welp...that says it all 👆🏽.
If we wanted to destructure the first 3elements in anarray:const [veg1, veg2, veg3] = ["Cabbage", "Turnip", "Radish", "Carrot"]
Those 3 dots:... are aspread operator. That's why in the above repl.it 👆🏽, we can pull out the first element(s) and then still keep the rest of them in anotherarray.
Top comments(2)
Subscribe

Manav Misra•
I'm a JS Subject Matter Expert (SME) that has spent the past few years spearheading curricula and teaching initiatives at colleges and bootcamps, in person and virtually.
- Location62236
- EducationBS - Mech. Eng. - Missouri S&T
- Joined
By all means, do learn 'vanilla JS' as much as you can. Ironically, I have not done any 'React Native' myself - just 'regular React.' I'll surely get to that - maybe you can post something on that to get me started. 😃
For further actions, you may consider blocking this person and/orreporting abuse




