🤚🤚🤚 Why the () with a semicolon (;) at the end are mandatory when destructuring without a declaration ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

🤚🤚🤚 Why the () with a semicolon (;) at the end are mandatory when destructuring without a declaration ?

NB: I am talking about JavaScript. This is an example for what I am talking about: let {a, b} = {a: 'Hello ', b: 'Jack'}; console.log(a + b);

13th May 2021, 9:14 PM
Nacereddine Drici
Nacereddine Drici - avatar
2 Answers
0
Mirielle[ Left SL ] I am talking about JS.
17th May 2021, 4:22 PM
Nacereddine Drici
Nacereddine Drici - avatar