There are two ways inside Codecademy's learning environment to save your work. The first is Copy to Clipboard and the other Share Code.
Located at the bottom of the Codecademy code editor, the "Copy to Clipboard" button saves your code to your computer's pre-programmed clipboard.
Here are some resources for both Mac and PC clipboards and where your code will go:
The second option is to "Share Code" to create a Gist from inside the learning environment. The "Create a Gist" button is located in the Tools bar at the top of the page. This feature helps you push your code to Github and make edits to your code inside Github as you please. You can use your Github itself as a portfolio or make a portfolio separately. All projects will have a Share button, but not lessons.
We've launched a new feature inside the learning environment that allows you to Fork projects into Workspaces. This will move your project into a Workspace so you can edit, change, customize, and share. At the top of the learning environment, you will see a "Fork" button.
Typically our learners start out by building a portfolio with Github and depending on your path you can build a more personalized portfolio like a website or a VPS.
Check out this Youtube video from our team to get some more ideas. To see more - take a peek at this thread in the Codecademy Forum to see how other learners create portfolios of their work.