0

Js problem

What should i do with this error (Unexpected token "<")

24th Jul 2020, 6:08 PM
Ftm Bo
Ftm Bo - avatar
8 Antworten
+ 1
Ftm Bo just check the tags in your code. It should be a typing error.
24th Jul 2020, 10:37 PM
Rawley
Rawley - avatar
0
Post your code
24th Jul 2020, 6:08 PM
Emanuel Maliaño
Emanuel Maliaño - avatar
0
<html> <head> </head> <body> <script> document.write("<h1>Hello World!</h1>"); </script> </body> </html>
24th Jul 2020, 6:09 PM
Ftm Bo
Ftm Bo - avatar
0
You have a line break after backslash. You must delete it and put everything on one line. <html> <head> </head> <body> <script> document.write("<h1>Hello World!<h1>"); </script> </body> </html>
24th Jul 2020, 6:17 PM
Emanuel Maliaño
Emanuel Maliaño - avatar
0
Even without that line break it errors to me
24th Jul 2020, 6:18 PM
Ftm Bo
Ftm Bo - avatar
0
Are you sure? works fine for me.
24th Jul 2020, 6:19 PM
Emanuel Maliaño
Emanuel Maliaño - avatar
0
Yes I'm sure In this app it errors Maybe it's a bug, isn't it?
24th Jul 2020, 6:21 PM
Ftm Bo
Ftm Bo - avatar
0
Ftm Bo Your program have no errors. Where are write that? Paste the code in html page section and run..
24th Jul 2020, 6:23 PM
Jayakrishna 🇮🇳