The number one question I am asked on social media is, "how do I get started with coding" - so I'm here to point all my new devs in the right direction.
The advice is simple really. Build, break, create.
Build: I recommend building something. Anything. As long as you are writing code, you are making a step in the right direction (as a beginner).
Break: You will break sh*t. It's going to happen and you have to be okay with that. It doesn't matter if you have been coding for 1 year, or 12 - you will end up breaking something. The good news is, that is how you learn!
Create: I include 'create' separate from 'build' because I think they can be two separate processes. In my 'build, break, create' methodology, you are building out of necessity for learning. Alternatively, you create things out of passion.
So there it is. My #1 advice. Build, Break, Create.