@BroCodez

// spread operator =  ... allows an iterable such as an
//                                  array or string to be expanded
//                                  into separate elements
//                                 (unpacks the elements)

// ------------- EXAMPLE 1 -------------
let numbers = [1, 2, 3, 4, 5];
let maximum = Math.max(...numbers);
let minimum = Math.min(...numbers);

console.log(maximum);

// ------------- EXAMPLE 2 -------------
let username = "Bro Code";
let letters = [...username]; 

console.log(letters);

// ------------- EXAMPLE 3 -------------
let fruits = ["apple", "orange", "banana"];
let vegetables = ["carrots", "celery", "potatoes"];
let foods = [...fruits, ...vegetables, "eggs", "milk"];

console.log(foods);

@AdrianTregoning

I worked through all your Java videos. I did some other online courses too yet I find myself coming back here. I managed to land a 6 month internship as a full stack software developer and although I'm not employed now I built a great project in Java connecting to a MySQL database using Hibernate and yes the old fashioned away of JSP/servlets. I thank you so much for everything you've done. Here I am brushing up on my weak JavaScript. Onwards, and thank you. It's hard to study by yourself, but possible. 43 years old, married, kids, was a mechanical engineering. Got to grind.

@1More_Dreamer

when not even documentation makes me understand, I come here, and leave with pure knowledge

@swayampattanaik1522

greatest takeaway: ``unpacks the elements ``

@YourCodeAngel

Thanks bro. Very helpful for us visual learners.

@r4tt0-rn6bo

thank you 
              🇧🇷    Brasil, SC - Blumenau.

@piotrmazgaj

<*> This is my seal. I have watched the entire video, understood it, and I can explain it in my own words, thus I have gained knowledge. This is my seal. <*>

@5upl1an

oh fuck yeah, spread it

@weslaycock466

Thanks bro grateful this type of education exist and is freely available

@paolobena

Fantastic!

@Flame77Ofc

Finally i got it!

@milos2785

GREAT! Thanks for explaining!

@MikixIT

No way, 2ez! Thanks bro 🙏

@ramonremz

ok yeah this is the perfect way of explaining it. thanks!

@feenixtm

Thanks Bro Code! :D

@Odyssey5e

Thanks bro ❤

@khalidelgazzar

So good. Thanks!

@raikashifali1

Big fan 🪭 Sir!! 😅. Big fan

@meghanam3948

Next level

@kathikr9360

thank you