Answers for "destructure array with objects on it"

0

js Destructuring arrays and objects

// 1) Destructure array items
const [first, second,, fourth] = [10, 20, 30, 40];

// 2) Destructure object properties
const { PI, E, SQRT2 } = Math;
Posted by: Guest on March-07-2022

Code answers related to "destructure array with objects on it"

Code answers related to "Javascript"

Browse Popular Code Answers by Language