0
Why let, const didnt work in code playground?
when i use "let" i got unexpected identifer and "const" make some error too
5 Respuestas
+ 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
+ 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 ^^
+ 3
their ide is not updated to es6 mayhaps
+ 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).
0
Good to know, i thought that it only depend on my browser.
Thank you for the answers guys.