
Destructuring assignment is used to unpack value from an array, or properties from the object, into distinct variables Let [x,y] = [7,20] x will be assigned 7 and y, 20 [10,x, ...rest] = [10, 80, 7, 11, 21, 88] x will be 80 rest will be [7,11,21,88] ...
“When I wrote this code, only God and I understood what I did. Now only God knows.” https://www.buymeacoffee.com/junoriver88
I am very passionate Coder https://www.buymeacoffee.com/junoriver88
Markdown supported · ⌘↵ to post
No responses yet.