Currently, I'm in the final stages of completing a blackjack game. However, one aspect that I haven't implemented yet is the ability for the user to play again after finishing a round. My initial idea is to use a window.confirm dialog box, where if the user selects "ok", the previous game will be cleared. I'm looking for advice on how to properly erase the previous game data or if there's a more efficient way to handle this situation.
Grateful for any help!