Why this question has ans error please explain | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why this question has ans error please explain

const obj ={one :1,two:2}; let {one:one,two:two} = obj; console.log(one);

6th May 2019, 9:32 AM
Mukeem Ahmad
Mukeem Ahmad - avatar
6 Answers
+ 1
please include your code with the code play ground because the question looks incomplete without it
6th May 2019, 9:50 AM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 1
Thanks...
6th May 2019, 11:26 AM
Mukeem Ahmad
Mukeem Ahmad - avatar
+ 1
Can you share the error message? Because SoloLearn compiles web code with browser of user's device, it often happens that some ES6 syntax is not compatible with user device.
6th May 2019, 3:12 PM
Gordon
Gordon - avatar
0
Sorry for misstype i have edited question...
6th May 2019, 10:10 AM
Mukeem Ahmad
Mukeem Ahmad - avatar
0
~ swim ~ no actually i missed question. Now I have corrected the questions bt still not able to understand it's ans
6th May 2019, 10:22 AM
Mukeem Ahmad
Mukeem Ahmad - avatar
0
~ swim ~ its ans is error... I found this question in deconstruction tutorial.
6th May 2019, 11:12 AM
Mukeem Ahmad
Mukeem Ahmad - avatar