0

Why this Array destructuring is showing error

Array Destructuring, ES6, js advance tutorial why its showing error for flowing code let lang = ['js', 'python', 'c', 'php' ] ; let [one, two, three, four] = lang ; console.log(one) ; console.log(two) ;

17th Mar 2020, 8:51 AM
Sourabh Mane
Sourabh Mane - avatar
1 Resposta
+ 3
Sourabh I don't see any error. Answer is js and python https://code.sololearn.com/W80D3K5329Ob/?ref=app Vek JavaScript understand single quote as a String also. Check last console output.
17th Mar 2020, 9:18 AM
A͢J
A͢J - avatar