+ 1
How to make "restart" on JS (in game)
6 Respostas
+ 2
window.location.reload(true);
+ 1
it don't works! Why?!
+ 1
Do you want to restart the game or the page
+ 1
game, because... just write
+ 1
try putting game in a function and executing it again like
function game(){
//Your Code
}
var a = true;
while(a){
game();
a = confirm("Do you want to play again?");
}
0
Thank you very much!!! Rate my code, please:)
https://code.sololearn.com/WaCs0gAq79wT/?ref=app