Hi can any Resolve the issue with this codeā¬ | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Respostas
+ 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