Search code examples
javascripthtmlcsstetris

how can I set a highscore in my tetris game javascript html css


I want to set a highscore with localstorage in my tetris game that I put in my website. I want that you can set a username and show it with the amount of score.

Can anyone help me please?


Solution

  • localStorage.setItem("username1", 1);
                         //name , // score value