How i even start to implement the localStorage challange here?
Hi, so far i implemented the duplicate names challnage and dealing with a blank entry.
I watched the localStorage workshop but i still can't figure out and even know how to add this feature to our existing app.
so far this is what i have done: https://w.trhou.se/whf9cxh4qi
I will really appreciate any guides
It's in a file called refactor.js
Steven Parker194,902 Points
The original project you borrowed from was designed to to store and retrieve an array, so you could simplify the functions a bit. All you need here is to store and re-load the
innerHTML of the list element. Also, notice that "getStoredListItems" needs to use getItem instead of setItem (line 23).
And you could store it anytime an item is added, removed, or edited. Then, when the JS is first loaded, if there's anything currently stored, stick it into the UL's