Remember me — Claude

By (@sasam) ·

Tech stack

  • Claude

Prompt

I'm building a to-do list on a plain HTML page and I want it to remember items after I refresh. First, can you explain in simple terms what localStorage is and its limits? Then I want to store my to-dos as an array of strings, like ["buy milk", "call mom"]. Show me a small function to SAVE that array to localStorage and another to LOAD it back when the page opens. Add one short comment per line so I understand what each part does before I type it in.

5 views

Explore more on Prompted