+ 1
Why js arrow function not work in my app ?is it not support in sololearn app[solved]
When I use arrow function or other ES6 updait not working ... Is that from my app ,phone ,sololearn app or something else? My phone is sony xperia c3 and my android is lolepop How I can solve that ?
16 Antworten
+ 2
You need to send your error and sololearn Supports arrow functions in js, here is an example https://code.sololearn.com/WSFJA94uyJJZ/
+ 1
alaa sufi please check if the below code works in your device
https://code.sololearn.com/WOafo3kW8P4Y/?ref=app
+ 1
Probaly yes
+ 1
alaa sufi there might be some problem with your device, maybe that's why arrow function are not working in your device without babel.
Kindly contact sololearn support. They may be able to help you out with it.
Further, check if android system webview app is updated.
0
Js arrow function work properly in sololearn playground.
Please share the code or refer console for actual error message.
0
Julian Bents its give me error SyntaxError
0
Can you share the code
0
alaa sufi share you code so we can look into it
0
In the Julian Bents code give my this error
SyntaxError unexpected token => in line 3
0
Julian Bents shared code is working fine in my device. However, if you are getting the SyntaxError then check if Sololearn app is updated or not.
0
Maybe your device don't support arrow functions or is just outdated
0
Its last version 4.2.0
0
Art1mis yes its work
0
Do you mean i need always import the script above the code?
0
Its work now I update the webview thanks alot