+ 1

How do I clear the screen? [Answered]

In my code if you press “run away” and then “respawn” the text will stay how to I stop this from happening? https://code.sololearn.com/Wy1DiuOBSj45/?ref=app

22nd Jan 2019, 11:22 PM
Trevor
Trevor - avatar
1 Respuesta
+ 3
Put this in the respawn function... document.getElementById("fix").innerHTML = "";
22nd Jan 2019, 11:41 PM
James
James - avatar