if (request.again == "yes") { client.gameno = parseInt(client.gameno) + 1 client.newgame = "true" // set flag to initialize new game redirect(addClient("hangman.html")) // redirect back to hangman page to play again. } else if (request.again == "no") redirect("thanks.html") // redirect to thanks page.

CONGRATULATIONS, YOU WON!!!

write(client.answer) 

Do you want to play again? YES NO