How do I clear the screen? [Answered] | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 Answer
+ 3
Put this in the respawn function... document.getElementById("fix").innerHTML = "";
22nd Jan 2019, 11:41 PM
James
James - avatar