localStorage in JavaScript

Score:

Click on the "Increase Score" button to increase the score count

Click on the "Decrease Score" button to decrease the score count

Click on the "Clear localStorage" button to clear the localStorage

You can close the browser tab (or window), and try again. You'll see that the data still persits and is not lost even after closing the browser.