local storage and session storage in html code example
Example: what is local storage and session storage in javascript
//localStorage - stores data with no expiration date. window. sessionStorage - stores data for one session (data is lost when the browser tab is closed)