I need help pls what is wrong with this code

i was doing the challenge from Use Destructuring Assignment to Assign Variables from Arrays and i dont know the error

Your code so far

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

Your browser information:

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

Challenge: Use Destructuring Assignment to Assign Variables from Arrays

Link to the challenge:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.