How could I save data in such a way like Clicker Heroes

I want to make a clicker game and want to have it where they can get some sort of save code that they can input but have no clue how to do this

Hi @DeductedFlame24,

localStorage is probably your best way to go. This way you could save and retrieve bits of data as you need them without having to use cookies: