i am an amateur programmer and I'm trying to make a javascript game. I am not going to post this game to the internet, so don't bother with servers and stuff.
The game has a simple score keeping system and every time the game is over, I want the all-time-high score to be shown, and if a new highscore is obtained, I want the previous highscore to be overwritten with the new one.
I searched a lot but couldn't find a proper read/write in javascript tutorial anywhere.
Also, if it can be written to a file that cannot be edited by anyone like txt files, it would be better.
I use plain javascript only, no Jquery or JSON or anything like that.