The best way is to complete as many projects as you can and read as much code as you can. You'll want to take a deliberate learning approach.
Check out out "Pragmatic Thinking and Learning" by Andy Hunt. It will show you how to build a skill investment portfolio.