+1

Why this code isnt working.It always shows syntax error while running the code.

JavaScript ES6 https://code.sololearn.com/W6T46V9d4P0d/?ref=app https://code.sololearn.com/WjgTK6fE8svX/?ref=app

1/27/2020 12:57:21 PM

Yogeshwaran

22 Answers

New Answer

+2

//then use var instead of const and let and use es5 function or try this👇 https://code.sololearn.com/WL4QrKP4we6A/?ref=app

+2

// Yogeshwaran you os version doesn't support ES6 , What's your current device version https://www.sololearn.com/discuss/1614248/?ref=app https://www.sololearn.com/discuss/1595308/?ref=app https://www.sololearn.com/discuss/1398112/?ref=app

+1

It's working fine here, the console showed 42

+1

😃😃👍

0

I see no code in your question , pate it here so we can help you

0

Where is the code?

0

Now I updated the code.can you see now?

0

I don't get it what do you want to do

0

But in my phone.it doesn't support.it shows syntax error.

0

Try it on sololearn it works

0

I try this code only in sololearn using phone.But it wont work

0

Sudharsan Rai why it won't supporting

0

What is the syntax error and in what line

0

//Try updating browser webview Yogeshwaran

0

But sudharsan Rai bro I am using sololearn in my mobile phone.How to rectify that?

0

In what line is the error ?

0

Flayer in first line onwards

0

Mmm yes sudharsan bro.This code is working in my device.

0

Thanks sudharsan Rai bro

0

//🔥🔥 Yogeshwaran