This program demonstrates the difference between localStorage and sessionStorage.
Data remains saved even after closing the browser.
Data remains during the current browser tab session.