+ 1
Hi eweryone, I cannot run ES6 code in my SoloLearn app. Does it depend on my device or the version of SoloLearn application ?
3 Antworten
+ 4
Like Kishalaya Saha said, all depends by your device which use a special component for process web codes (WebView in android). Unfortunatly, this component is not easly updable at system level on old devices then you have few choices for run ES6 codes on your device:
1) Transform, where possible, all code to ES5
2) Use a browser with ES6 support like Firefox on Android for run it (it use a custom component for run web codes)
3) Edit slightly the code using babel like discussed here
https://www.sololearn.com/discuss/1220172/?ref=app
+ 6
It depends on the device and not the version of the app.
Web codes are run using your phone's android system webview (or its equivalent in iOS). That's why you'd find that a web code, after you've opened it, runs even without the Internet, while other codes rely on Internet connection for both loading and running.
Hope that helps 😊
+ 4
Note, updating SoloLearn will pull in the latest Webview *if an update is available* for your mobile.
Once your mobile is old enough, Chromium webview is frozen except for *major* security problems.