Help me for resolves the probleme array destructuring

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

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

console.log(a, b)

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36

Challenge: Use Destructuring Assignment to Assign Variables from Arrays

Link to the challenge:

You are not supposed to re-declare a and b while destructuring as they are already declared in the first statement. Just think how you can get the value stored in b for a and the value stored in a for b using array destructuring.

Thank you Okay I understand better

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