I assume you mean to store it so that it can be retrieved the next time you play the game. If so then you need to use webstorage (depreciated) or localstorage. Suggest you look at the HiScore thread half a page below this for a very good example of how to do this.