π #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
AnhChienVu -
Mohammad Jawad (Kasir) Barati -
NatΓ‘lia Catunda -
Sushant Gaurav -
Top comments (0)