When I hit CMD+S on my mac, I get the confirmation message: “Saved! Your code was saved to your browser’s local storage.“ But if I leave the page and come back, my code isn’t there. This is especially frustrating since I’m on a macbook with a trackpad and sometimes accidentally swipe right on the trackpad which causes me to go back a page, from which then I return back to the original page to discover some or all of my code is gone.
have you tried reloading the page? does the saved code appear back after that?
Hi, no it does not. Even if i go back to exercises I’ve completed months ago where I saved my code, my old code will not show.
once the challenge is completed the saved is removed, would that explain what’s happening?
Correct, that’s what’s happening. Unless that’s intentional?
that’s the intentional behaviour, saved code is removed when you complete a challenge. The intention is to have save code available while you are working on the challenge, not after completing it, if you want to keep it after completion you need to download or save the solution outside freeCodeCamp
Ah I see now. Thank you! I marked your response as Solved.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.