How to view your completed task solutions?

It was some time when I completed JS course so I want to view my solutions again to restore my memory of JS, but when I click on my completed tasks it only shows blank tasks, which is not helpful because I can’t have enough time to solve tasks again. So the question is how to view your completed task solutions or can I do it at all?

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 which allows for versioning.

But is there at least one right solution for every task(How do you check if they are correct otherwise)? So why not show this right solution when you click on completed task?

The solutions are kept in the source of the challenges, but aren’t actually checked against the user’s code (which is impossible to test in general). Here’s an example of how the tests work (see the “tests” section in the markdown). Generally speaking, the tests only test the outputs of a function. Some of the tests do look for specific lines of code to make sure the solution is implemented a certain way, others don’t.

Sample solutions are maintained in the guide section you’re sent to by clicking the “Get a Hint” button, and as mentioned before, in the markdown source of the challenge.

Thank you for the answer.