I don't know what to do here

Tell us what’s happening:
Hello everyone, I don’t understand what I’m supposed to do here

Your code so far


let a = 8, b = 6;
// Only change code below this line
const [a,b] = [8,6]

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36.

Challenge: Use Destructuring Assignment to Assign Variables from Arrays

Link to the challenge:

Use destructuring assignment to swap the values of a and b.
[a, b] = [b, a]

1 Like