+ 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
3 Respostas
0
Mirielle[ Left SL ] I am talking about JS.
17th May 2021, 4:22 PM
Nacereddine Drici
Nacereddine Drici - avatar