You dont have a <p> element that has the id="score"
What do you mean? I used document.write("You got ", score, " out of 5") @AncientBison
document.write("You got ", score, " out of 5")
@medcho A tip that w3 says is never use document.write, It deletes all of your html. Look at this https://www.w3schools.com/js/js_htmldom_html.asp.
I know that @AncientBison
I didn’t write anything in my html file in the first place @AncientBison