+ 5

Where is my error ...

Can someone check my code to help me fix the error ... https://code.sololearn.com/W3qFzz0PxfgI/?ref=app

18th Feb 2019, 5:42 PM
Jess
Jess - avatar
8 ответов
+ 2
Line 4: simply change i<=txt.length to i<txt.length in the for loop. It loops one too many times.
18th Feb 2019, 5:48 PM
Russ
Russ - avatar
+ 5
Russ works for me too Evans C.T maybe your phone is not supporting ES6 it is pretty common, get somehow updates, there is library (i guess), called Babel which is for ES6 support on not supporing devices, try looking on google for this
19th Feb 2019, 6:28 PM
Maneren
Maneren - avatar
+ 4
Thank you so much ! It was so simple 😌
18th Feb 2019, 5:52 PM
Jess
Jess - avatar
19th Feb 2019, 6:11 PM
Russ
Russ - avatar
+ 1
Evans C.T Would you mind showing us your code where let doesn’t work?
19th Feb 2019, 6:09 PM
Russ
Russ - avatar
0
The 'let' keyword won't work in code playground. Try some other method.
18th Feb 2019, 5:47 PM
Evans
Evans - avatar
0
Evans C.T it works without problem, if not try updating apps and system on your phone
18th Feb 2019, 6:11 PM
Maneren
Maneren - avatar
0
No Maneren, let doesn't work for me.
19th Feb 2019, 5:21 PM
Evans
Evans - avatar