DEV Community

Halim Shams
Halim Shams

Posted on

JavaScript ES6 #Challenge

**

What is the output of code below:

**

let x, y;

[x=5, y=7] = [1];
console.log(x);
console.log(y);
Enter fullscreen mode Exit fullscreen mode

`
Follow for more challenges ahead!!!😎

Discussion (2)

Collapse
abdoalkholy profile image
abdoalkholy

x=1 y=7

Collapse
halimshams profile image
Halim Shams Author

Correct ✔