DEV Community

Halim Shams
Halim Shams

Posted on

5 3

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 βœ”

SurveyJS custom survey software

JavaScript Form Builder UI Component

Generate dynamic JSON-driven forms directly in your JavaScript app (Angular, React, Vue.js, jQuery) with a fully customizable drag-and-drop form builder. Easily integrate with any backend system and retain full ownership over your data, with no user or form submission limits.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay