Problem with ES6 syntax | SoloLearn: Learn to code for FREE!

+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?

2/3/2019 8:36:39 PM

Kacper Durak

3 Answers

New Answer

+5

It seems that your phone doesn’t support ES6 then.

+4

Add babel to transpiler the code Try use this code playground to write your ES6. https://code.sololearn.com/Wm8a0UNI9Kis/?ref=app

+1

Your phone browser doesnt support es6