Create username that is appended to the users final score in a quiz game


I need to carry over the final score that the user has received after answering the last question on the quiz. I have created two buttons at the end result of the quiz, one to restart the game the second one will take you to another page that will ask you to create a username that should be no more than 10 characters that include both letters and numbers only.

Once this username is created it should load a pop-up showing the username and final score as well as other usernames that are created as long as the page is not refreshed as well as a restart button on the pop. If refreshed of course there will be no usernames and scores. I did not include my index.html code since it is already completed and I don’t see why it would be needed.

Here is my code: