0

Why let, const didnt work in code playground?

when i use "let" i got unexpected identifer and "const" make some error too

8th Aug 2017, 8:39 AM
Grz
Grz - avatar
5 Answers
+ 5
it's your device(old version of Android or system webview) solution: share the code from the app to your web browser like chrome or Firefox and run the code there. let and const work in CodePlayground https://code.sololearn.com/WOavUEkujxNy/?ref=app question similar to this https://www.sololearn.com/Discuss/458981/why-this-demo-didn-t-run-as-expected
8th Aug 2017, 9:45 AM
Lord Krishna
Lord Krishna - avatar
+ 4
@David wrote: << their ide is not updated to es6 mayhaps >> It's not the IDE itself, it's about the android webview version for the in app code playground, and depends of support of ES6 from each navigators/versions on website code playground ^^
8th Aug 2017, 6:42 PM
visph
visph - avatar
+ 3
their ide is not updated to es6 mayhaps
8th Aug 2017, 8:57 AM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
+ 3
Android webview is kind of integrated browser in android API, to be able to display Html content... So, you was not really wrong: in a general meaning, it's depends of your browser (but not on wich is installed/used on your android device).
9th Aug 2017, 11:34 AM
visph
visph - avatar
0
Good to know, i thought that it only depend on my browser. Thank you for the answers guys.
9th Aug 2017, 11:27 AM
Grz
Grz - avatar