This might be a bit general but, I'm wondering where are js variables stored? And are they kept when you click into new pages or every time the data is reset?
They are reset every time you refresh.
There are multiple ways to persist them between reloads. e.g.
For all of these methods you would need to persist these (generally due to some user interaction) and load these on page reload etc. It does not happen automatically, you have to explicitly do so.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With