Local Storage

Session Storage

Click the button to see the counter increase.

Close the browser tab (or window), and try again, and the counter is reset.