Answers for "Destructuring of Data"

0

Destructuring of Data

const x = [1, 2, 3, 4, 5];
const [y, z] = x;
console.log(y); // 1
console.log(z); // 2
Posted by: Guest on November-07-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language