Destructuring assignment (SKIPPED) Flashcards
1
Q
// let [firstName, surname] = arr;
let firstName = arr[0];
let surname = arr[1];
what method can be used for the same result?
A
arr.split()
2
Q
let [a, b, c] = “abc”; // returns?
A
[“a”, “b”, “c”]