+ 1

What does the message mean Uncaught SyntaxError?

Greetings to the whole community. Why every time I want to run a code appears the following message? Uncaught Syntax Error: Unexpected token < Line 1.

17th Jul 2019, 8:58 PM
Pedro Marcano Salazar.
Pedro Marcano Salazar. - avatar
18 Answers
+ 21
Pedro Marcano Salazar. Good now 1 last thing you have to do... Just remove all the codes from "JS" tab (3rd tab) Then it will work
17th Jul 2019, 11:15 PM
KingDaniel2004
KingDaniel2004 - avatar
+ 20
Pedro Marcano Salazar. Your welcome, sir We are there to help you 😉 Happy coding 🤗
17th Jul 2019, 11:25 PM
KingDaniel2004
KingDaniel2004 - avatar
+ 19
If you don't mind share the code (or at least part of it) We will check it for you😉 we are there to help you🤝
17th Jul 2019, 9:25 PM
KingDaniel2004
KingDaniel2004 - avatar
+ 19
Pedro Marcano Salazar. It won't accept HTML tags in the javascript section... That's why it says error How to fix it: 1) remove all the codes from your javascript section 2) copy this and paste it inside body, in html (7th line) 👇copy 👇 <script> document.write("Hello World!"); </script> ☝️copy☝️
17th Jul 2019, 10:49 PM
KingDaniel2004
KingDaniel2004 - avatar
+ 17
Mike Perkowski your welcome, sir Is it working now?
17th Jul 2019, 10:53 PM
KingDaniel2004
KingDaniel2004 - avatar
+ 3
you wrote HTML in the JS tab ... JavaScript doesn't recognise the HTML, so it gives an error message
17th Jul 2019, 10:39 PM
Anton Böhler
Anton Böhler - avatar
+ 3
just remove everything which is HTML from the JS tab (basically anything that starst or ends with <>)
17th Jul 2019, 10:40 PM
Anton Böhler
Anton Böhler - avatar
+ 1
because you probably have a < somewhere in your code which doesn't belong there or you havn't closed a bracket or something like that... It would help alot if you shared the code your having trouble with ... otherwise thats all we could tell you...😅 By the way a Syntax Error is when your code is not written properly, like things are missing or at wrong places or shouldn't be where they are.😅
17th Jul 2019, 9:06 PM
Anton Böhler
Anton Böhler - avatar
+ 1
just share your code in this thread ... 😅
17th Jul 2019, 9:25 PM
Anton Böhler
Anton Böhler - avatar
17th Jul 2019, 10:51 PM
Pedro Marcano Salazar.
Pedro Marcano Salazar. - avatar
17th Jul 2019, 11:27 PM
Pedro Marcano Salazar.
Pedro Marcano Salazar. - avatar
0
Since I started I have had this problem. I have reviewed my codes and I can not find the error.
17th Jul 2019, 9:14 PM
Pedro Marcano Salazar.
Pedro Marcano Salazar. - avatar
0
are you maybe using some sort of library or something like that, which you have acedentally opened perhaps edited?
17th Jul 2019, 9:31 PM
Anton Böhler
Anton Böhler - avatar
17th Jul 2019, 10:35 PM
Pedro Marcano Salazar.
Pedro Marcano Salazar. - avatar
0
Ok, thanks.
17th Jul 2019, 10:42 PM
Pedro Marcano Salazar.
Pedro Marcano Salazar. - avatar
17th Jul 2019, 11:13 PM
Pedro Marcano Salazar.
Pedro Marcano Salazar. - avatar
0
Daniel [#United We Stand🇮🇳] Now everything is in order. >> https://code.sololearn.com/WA9TU09qgHXS/?ref=app Thank you very much for your help.
17th Jul 2019, 11:23 PM
Pedro Marcano Salazar.
Pedro Marcano Salazar. - avatar
0
nice question
4th Aug 2019, 4:47 PM
Rahul Kumar