Lost Code - Can it be retrieved?


I’ve logged into my account after a couple of weeks away and all of my code is gone.

I used the Reset All Code button to erase the code in the Responsive Web Design Principles lesson but I didn’t think this would erase everything. I also remember checking that my code for the other lessons was there after doing this and it was still there, so I don’t know if that’s what caused the problem.

Please let me know if theres any way of getting it back.


Update - I’ve now been working through various JavaScript lessons for the past 3 hours and it hasn’t saved any of my code. Is anyone else having this issue at the moment?

There are two different types of saved progress for Free Code Camp: your profile and your browser cache.

A list of your completed challenges is saved to your account in the FCC database. You can see the list of completed challenges by looking at your public portfolio. With a growing curriculum already over 1,400 lessons and a community of millions of people, FCC does not store every solution to every challenge in its database. When you complete a challenge, there is a modal that gives you the option to download your solution. This gives you the option to save a copy of any solution that you may want to reference later. There are some challenges which are classified as projects required for certifications. Your solutions to those can be viewed on your settings page.

Your in-editor code is saved in your browser’s local storage. Recent in-progress code from the challenge editor is also saved in your local browser cache when you run tests. If you are completing lessons and do not see your recent code, then your local storage has been cleared or something is preventing FCC from writing to your browser’s storage. This could be a browser setting, a privacy extension, or a browser version incompatibility. Especially as you get to more complicated challenges that may take multiple sessions, I strongly recommend saving your in-progress work outside of the browser cache.

This is a good opportunity to learn the ins and outs of your GitHub account, but you can also just save locally or use a service like repl.it which allows for versioning.

Yes I have the same issue SUDDENLY, shame they lead you into a trap of thinking your answers are always recorded and then you realise at Javascript level and after hours of work etc.

It will be good to stay answers then we can go fast through tasks (run - next - run - next) and to recall memory what we did there.

it is not possible, there are not enough donations to have an ever increasing storage to store solutions

you can download your solutions

Then maybe when a task is finished to unlock and to shows from universal solution? One solution for all? Just suggestion.

in the guide (under “Get a Hint”) there are solutions for many challenges, and for some even note than one