0

My browser display nothing. I want to display thé two input. Thanks you.

Display input. https://code.sololearn.com/WiiQV81HFk28/?ref=app

15th Feb 2021, 1:11 PM
Malick Diagne
Malick Diagne - avatar
3 Answers
+ 1
Hi! You have a problem in line 48. I tried to comment it out (the line with the button), I got two input fields on the screen. look for an error in this direction
15th Feb 2021, 2:00 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 1
paragraph1.innerHTML = "<button onclick= \"display()\">display</button>";
16th Feb 2021, 2:45 AM
visph
visph - avatar
0
It says unexpected token at line 48 , you are literally trying to write html in js . "<button onclick = "display()">display</button>" at line 9 , change the id to "third" from "paragraph1" , also append paragraph1 to body .
15th Feb 2021, 2:01 PM
Abhay
Abhay - avatar