Hi all. I practice on freeCodeCamp on a PC and a mac, both using FireFox browser and in sync on both devices. However, I notice the code I entered is saved on the PC but not on the mac, can someone help me solve this problem? i.e. code entered after task completion not saved on browser
It gets saved to local storage, which AFAIK doesn’t sync.
You can retrieve your code saved to the database by clicking the appropriate link to the solved challenge in your profile.
I click on a solved challenge, yet I cannot see any of my code.
Apologies, it just occured to me that this might not be true of the new version, so I’ll check when I’m at my computer next.
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 growing user base several times that size, FCC does not store every solution to ever challenge in its database. 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. Because FCC rolled out a completely new application, the old cached values are no longer valid. This is the same effect you would have if you cleared your browser cache. If you are completing lessons and do not see your recent code, then 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. The FCC team is working on creating an easy way for campers to download a solution when a challenge is completed. You can help add useful tools like this by being a contributor .