JavaScript uses three dots (...) for both the rest and spread operators. But these two operators are not the same.
The main difference between rest and spread is that the rest operator puts the rest of some specific user-supplied values into a JavaScript array. But the spread syntax expands iterables into individual elements.
In this video I have explained rest vs spread under 1 minute.
rest vs spread is one of the most common topic asked in JavaScript interview questions.
Cheers,
Sahil Ahlawat
https://freelancingdiary.com/
Would love to Stay Connected with you ❤️
LinkedIn - / sahil-ahlawat
Instagram - / sahil_devil
#sahilahlawat #javascript #english #callbackfunction #javascriptsimplified #spreadoperator #restoperator #restvsspread
In questa pagina del sito puoi guardare il video online JavaScript Interview Question 🔥 | Rest vs Spread in JavaScript | JavaScript simplified della durata di online in buona qualità , che l'utente ha caricato Sahil Ahlawat 07 giugno 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 881 volte e gli è piaciuto 27 spettatori. Buona visione!