+ 4

Problem with ES6 syntax

Hello everyone ! I have a problem with my phone. While I try to run codes that use arrow operators (=>) or 'this' keyword in themselves it generates an error like "unexpected character > ,or 'this' or even sometimes '='". Any idea how to fix this?

3rd Feb 2019, 8:36 PM
Kacper Durak
3 Answers
+ 5
It seems that your phone doesn’t support ES6 then.
3rd Feb 2019, 8:41 PM
Rowsej
Rowsej - avatar
+ 4
Add babel to transpiler the code Try use this code playground to write your ES6. https://code.sololearn.com/Wm8a0UNI9Kis/?ref=app
4th Feb 2019, 12:47 AM
CalviŐ˛
CalviŐ˛ - avatar
+ 1
Your phone browser doesnt support es6
10th Feb 2019, 2:38 PM
Adesina Oluwatoyin E
Adesina Oluwatoyin E - avatar