Question: what is the difference between local storage and session storage?
Answer: Session storage is destroyed once the user closes the browser whereas, Local storage stores data with no expiration date. The sessionStorage object is equal to the localStorage object, except that it stores the data for only one session.