filmov
tv
JavaScript Syntaxes : Destructuring Assignment, Spread and Rest
Показать описание
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.
💖 Buy me a Coffee
🌀 Related Videos ___
🔗 Find me in
#JavaScript #JavaScriptBeginnersTutorial #CodAffection
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.
💖 Buy me a Coffee
🌀 Related Videos ___
🔗 Find me in
#JavaScript #JavaScriptBeginnersTutorial #CodAffection
Комментарии