Help making cookies work

javascript
#1

I need help with Cookies. in https://beta-clicker.glitch.me/LiveUpdate i have a poor cookie maker that does not work. i want to make it so when a user comes online after being on the site before it remembers there count. Please help

#2

hey there, you can use “localStorage”, here is a example
will increase the cookies and add them into the browser’s storage

you might find these links helpful
https://www.w3schools.com/html/html5_webstorage.asp