0

Where does the "Uncaught SyntaxError: Unexpected end of input" originate?

I've tried many code editors, but they keep returning this error. When I used a code validator, it said there weren't any. https://code.sololearn.com/W5a162A10a12/#

17th Jun 2021, 6:10 PM
OverdrivedProgrammer
4 Respostas
+ 5
there were a lots of issues that i fixed https://code.sololearn.com/W4TbHkvf6Z7k/?ref=app see comments in js tab for edits that i have made
17th Jun 2021, 6:38 PM
Prashanth Kumar
Prashanth Kumar - avatar
+ 1
I think it happens when you forget to close the bracket.For example missing a } or something like that.
17th Jun 2021, 6:17 PM
The future is now thanks to science
The future is now thanks to science - avatar
+ 1
code validators only check the html sttucture, not the embeded javascript syntax... "unexpected end of input" could occurs for unclosed strings, brackets or even parenthesis...
17th Jun 2021, 7:12 PM
visph
visph - avatar
0
Alright, say where's my problem, then.
17th Jun 2021, 6:23 PM
OverdrivedProgrammer