+ 1

Why won’t parts of ES6 work in SoloLearn’s playground?

https://code.sololearn.com/WsC4XdNWw2LT/?ref=app So far destructuring objects and rest doesn’t work in the playground. I pasted the exact code here with destructuring an object in my browser and it worked fine. Is Solo Learn planning to fix this?

27th Nov 2018, 4:14 AM
Thomas Czernek
Thomas Czernek - avatar
2 Respuestas
+ 6
It's your webview (or, more specifically the JS engine Chromium's running on your mobile) You can check your webview version here (includes a lot of feature tests): https://code.sololearn.com/WeBKGPjY0UHK/?ref=app And also check what webview versions support here (useful for other people's mobiles, or checking for bugs): https://www.caniuse.com
27th Nov 2018, 4:36 AM
Kirk Schafer
Kirk Schafer - avatar
+ 3
Beside what Kirk Schafer said, see here for a way to run ES6 code on device that dont support it https://www.sololearn.com/discuss/1220172/?ref=app
27th Nov 2018, 7:00 AM
KrOW
KrOW - avatar