+ 1

'let' in SoloLearn JavaScript is not supported? Or it's only on my smartphone?

https://code.sololearn.com/WjYzkAf3TfTt/?ref=app

16th Aug 2019, 10:34 PM
UraL
8 Answers
+ 7
https://www.sololearn.com/learn/JavaScript/2968/ https://www.sololearn.com/learn/JavaScript/2969/
18th Aug 2019, 12:02 PM
Danijel Ivanović
Danijel Ivanović - avatar
+ 5
UraL Probably you have an android version less than 5 (like me) where default web engine dont support ES6 (eg first standard than define let keyword). For make it work without change your device is run the code on web engine than support ES6..... Try to run the code on newest version of Chrome, Firefox for android, Kiwi than dont use default web engine but a custom and updated one
17th Aug 2019, 6:02 AM
KrOW
KrOW - avatar
18th Aug 2019, 10:58 AM
KrOW
KrOW - avatar
+ 3
Paul Grasser the question is not that, my program does not start. error on 'let' keyword
17th Aug 2019, 5:31 AM
UraL
+ 3
UraL oh then it must be a because you have an old built-in webview. Maybe you can find out more about your WebView implementation under your phone settings > Developer Options > WebView implementation.
17th Aug 2019, 6:55 AM
Paul Grasser
Paul Grasser - avatar
+ 3
KrOW yes, my android version is 4.4.2
17th Aug 2019, 7:00 PM
UraL
+ 2
Let declares variables for the local scope. So the name with the value peach is only in the if statement.
16th Aug 2019, 10:50 PM
Paul Grasser
Paul Grasser - avatar
+ 2
KrOW what is ES6 ?
18th Aug 2019, 10:55 AM
UraL