π #mustknow
Learning JS or React? Learn to deconstruct arrays using the destructuring assignment syntax.
Example curtesy MND Web Docs
({ a, b } = { a: 10, b: 20 });
console.log(a); // 10
console.log(b); // 20
Learning JS or React? Learn to deconstruct arrays using the destructuring assignment syntax.
({ a, b } = { a: 10, b: 20 });
console.log(a); // 10
console.log(b); // 20
For further actions, you may consider blocking this person and/or reporting abuse
Juan -
Md. Shafiqul Islam -
Piyush Chauhan -
Balaji Sasikumar -
Top comments (0)