What does the sessionStorage API do?
- A Stores data shared across all tabs until manually cleared
- B Stores data for a single tab, cleared when that tab closes
- C Sends data with every HTTP request
- D Stores data on the server
Answer
Stores data for a single tab, cleared when that tab closes
sessionStorage is scoped per tab. localStorage persists and is shared across tabs on the same origin, and neither is sent to the server.





