Day 30: Destructuring Assignment in JavaScript
#WomenWhoCode
#100DaysOfCode
https://abs.twimg.com/emoji/v2/... draggable="false" alt="š§µ" title="Thread" aria-label="Emoji: Thread">
#WomenWhoCode
#100DaysOfCode
Destructuring assignment is a special syntax introduced in ES6, for neatly assigning values taken directly from an object.
Destructuring allows you to assign a new variable name when extracting values. You can do this by putting the new name after a colon when assigning the value.
One key difference between the spread operator and array destructuring is that the spread operator unpacks all contents of an array into a comma-separated list. you cannot pick or choose which elements you want to assign to variables.
The end of this thread.
https://abs.twimg.com/emoji/v2/... draggable="false" alt="š" title="LƤchelndes Gesicht mit herzfƶrmigen Augen" aria-label="Emoji: LƤchelndes Gesicht mit herzfƶrmigen Augen">
Thank you for your time, I hope you found it useful.
https://abs.twimg.com/emoji/v2/... draggable="false" alt="ā¤ļø" title="Rotes Herz" aria-label="Emoji: Rotes Herz">
Thank you for your time, I hope you found it useful.