+ 1
Hi can any Resolve the issue with this codeâŹ
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 );
+ 1
also, to call the function from html you only need its name
onclick='somefunction'
not
onclick='return somefunction()'