+ 1

Hi can any Resolve the issue with this code⏬

? https://code.sololearn.com/Ww04Ns939vmj/?ref=app

20th Oct 2019, 2:16 PM
Sourabh Mane
Sourabh Mane - avatar
2 Answers
+ 3
Check this and compare with your code. Replace with this and it will work fine and try to do debug results.innerHTML = "<h2> hi" + score + "points out of " + numOfQuestion + "</h2>"; alert("you scored" + score + "out of" + numOfQuestion );
20th Oct 2019, 2:28 PM
AÍąJ
AÍąJ - avatar
+ 1
also, to call the function from html you only need its name onclick='somefunction' not onclick='return somefunction()'
20th Oct 2019, 2:32 PM
Taste
Taste - avatar