FreshworksRole: Full Stack EngineerSeptember 2026
Interview question
Compare localStorage, sessionStorage, and cookies and explain their purposes.
Follow-up questions
- What are the storage limits for localStorage and sessionStorage? Could they store millions of entries or large binary images and videos?
- Where would you store a large amount of client-side data, such as video content needed for related-video playback?
- Can JavaScript update a cookie, and which API would it use?
- How can the server prevent client-side scripts from modifying an authentication cookie?
- Can one tab access sessionStorage created by another tab on the same domain and account?