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!!!😎

Top comments (2)

Collapse
 
abdo_elkholy profile image
Abdullah El-kholy

x=1 y=7

Collapse
 
halimshams profile image
Halim Shams

Correct ✔