r/JavaScriptTips • u/fare03 • Oct 15 '22
Javascript Local storage
Hi, I need to set local storage in quiz to save answers after reloading site, can you help me how to do it, thank you.
3
Upvotes
r/JavaScriptTips • u/fare03 • Oct 15 '22
Hi, I need to set local storage in quiz to save answers after reloading site, can you help me how to do it, thank you.
0
u/beforesemicolon Oct 15 '22 edited Oct 15 '22
Use this library for an easy API and multi data type support.
https://github.com/beforesemicolon/client-web-storage
Check the example in the README and make the changes to fit your project.