To add on to the other posts, one thing that really helped me master my craft was being active on Q&A sites, and participating as much as possible in the stacks I was interested in. Even if I wasn't directly answering questions, I would at least read and go through questions and see how they were resolved.
Besides coding coding coding coding, and writing code, I would say this is one of the biggest things that helped advance my knowledge of dev work.