TL;DR - Need help parsing the downloaded solution to understandble js
So i’ve finished all the basic js and es6, wanted to do a review annnnnd it’s gone,
I can’t view my old solutions (they don’t appear on fcc, only in green, so i downloaded them), the downloaded file is in json annd since it’s json i reallly cant understand anything written…
I just want to review my solutions… any help guys?
If you’re talking the file that you can download from your settings page, I believe that it only contains the solutions to your project challenges. The lesson challenges give you the opportunity to download your solution when you submit them, but they aren’t saved by FCC.
If the JSON file does include the challenges you want, then you need to find the key for the challenge you’re interested in. The value will be the solution code in the form of a string. When you parse the string all of the escaped characters will be presented as their parsed counterparts.
Hi, I’m not sure why the answers are being provided in this format. I found it pretty confusing and not a good user experience. I wound up creating a solutions.html file with code that parses the downloaded solution:
<!-- HTML boilerplate -->
var obj = // Paste your solution text here
If you open the page with a browser it will log the solution in the console in a readable format. Even this isn’t terribly helpful though, since the console doesn’t highlight syntax or allow easy editing. The best approach is probably to bypass the download button altogether and just copy and paste your answer into your favorite IDE and save from there. Here is a pen (make sure to open console to view solution).