Skip to content
Advertisement

Tag: reset

How to reset the state after a tictactoe game?

how do i reset the state of the board after a tictactoe game? i want to fire the startGame() function where it will clear out all the x’s and O’s of the board whenever i hit the restart button. or do you have any other cleaner approach to do so? thank you so much Answer Bear in mind that element.className

how to call out again the functions in javascript?

I watched the JavaScript tutorial of cleverprogrammer at youtube then I saw his rock, paper, scissors game. I thought of an idea to add some function in his game that will reset or will move onto next round. But when I try the remove() or document.getElementById(‘id name of my form’).remove(), it will clear what is in the frontend but I

Advertisement