If you can afford it, try to have some patience. This is what I struggled with the most.
How I went from zero to San Francisco software engineer in 12 months
Sean Smith

Key — Patience. Being able to give yourself space and time to acquire the necessary mindset, skills and the discipline to follow through and solve problems all helped in being able land the job. It all rested on full commitment and engaging regularly and consistently.