Completed Code Snippets

Completed Code Snippets
0

#1

Hello

Is there a place where our completed lessons are saved? I’m trying to refer back to some of the code I’ve written before for help but when I go back to it it provides me with an uncompleted lesson.

If there’s a way to get to see my completed code that would be great!

Kind regards

Steve


#2

When you’ve completed a challenge, you’re given the option to Download your solution. As far as I know, that’s the only way to save it.


#3

Ah gutted, thanks for the info though. I’ll bear in mind to keep downloading then as I go on. Cheers!


#4

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 every challenge in its database. When you complete a challenge, there is a popup that gives you the option to download your solution. This gives you the option to save 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. 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.


#5

Can you connect to github with FCC?
That would be awesome, right now I have been writing the code in sublime first and then running it via cmd with node or similar!
By connect I mean save to a repository through FCC.


#6

You can connect your profile to GitHub, but you can’t export/inport code directly between FCC and GitHub. At the end of every challenge, you do have the option to download your solution.


#7

Ah ok I understand, thanks for the answer :slight_smile: