What is a good way to save code for learning purposes

Hello,

I’m new to coding and am working my way through the basic JavaScript challenges. For some of the challenges that I find difficult or complex, I like to save the code with my own notes. I’ve been using Scrimba to save this code, but I’m wondering if there’s a better or more efficient way.

Why not save the code locally? You can also push it to GitHub as well (or just use the file upload if you are not familiar with Git).

You can use VS Code with the Quokka extension to run the code when testing and trying out different code versions of the challenges (without the tests of course).