scrimba
Learn Modern JavaScript
Use Destructuring Assignment to Assign Variables from Arrays
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Use Destructuring Assignment to Assign Variables from Arrays
AboutCommentsNotes
Use Destructuring Assignment to Assign Variables from Arrays
Expand for more info
index.js
run
preview
console
const [z, x] = [1, 2, 3, 4, 5, 6];
console.log(z, x);


let a = 8, b = 6;
(() => {
"use strict";

})();
// console.log(a);
// console.log(b);
Console
1
,
2
,
index.html
-1:41