Destructuring Example 10
Destructuring arrays - basic assignment
by shravan
Babel + JSX
let numbers = [1, 2, 3, 4, 5];
let [a, b, c, d, e] = numbers;
console.log(a, b, c, d, e); //1 2 3 4 5
by shravan
let numbers = [1, 2, 3, 4, 5];
let [a, b, c, d, e] = numbers;
console.log(a, b, c, d, e); //1 2 3 4 5