Answers for "js array destructure"

0

array destructuring in js

const arr = [1, 2, 3, 4];
const [first, second] = arr; // first = 1, second = 2
Posted by: Guest on February-11-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language