JavaScript Syntaxes : Destructuring Assignment, Spread and Rest

Опубликовано: 21 Апрель 2026
на канале: CodAffection
2,698
118

🍒 Related Videos
Next Part:    • Callback and Higher Order Functions in Jav...  
Prev. Part:    • JavaScript Object in Depth.  

💖 Channel Support
➤ Paypal: https://bit.ly/3L36ut4
➤ UPI App: https://geni.us/ScanQRCode
➤ Amazon: https://geni.us/AmazonAffiliated

💌 For Business Inquiries
[email protected]

🚶‍♂️ Follow us
Facebook :   / codaffection  
Discord :   / discord  
Twitter :   / codaffection  

----
Destructuring Assignment, Spread and Rest Syntaxes in JavaScript.

In previous videos, we've discussed JavaScript arrays and objects. In this video, we are going to play with them with destructuring assignments, spread operators, and rest syntax. These are my favourite topics in JavaScript.

JavaScript Destructuring assignments can be used for both arrays and objects. It just unpacks values within them into variables in the assignment statement. The rest syntax or operator is used to collect rest over elements after the destructuring assignment.

The spread syntax is used to spread its elements in places where JS expects one or more elements (for arrays) or one or more key-value pairs.

Discussion @ times
--------------------------------
00:00 - Introduction.
00:46 - JS Array Destructuring Assignment.
04:23 - Access Properties of an Object.
05:19 - Swap 2 Numbers with Destructuring.
06:46 - Rest Syntax for JS Array.
08:21 - Rest Parameters in JavaScript.
12:28 - JS Spread Syntax.
18:10 - Spread Syntax with JavaScipt Object.
20:10 - JS Object Destructuring & Rest Syntax.

#JavaScript #JavaScriptBeginnersTutorial #CodAffection