In all fields, learning involves errors, usually lots of them, until you acquire the skills and expertise necessary to achieve your objectives. Self-confidence allows individuals not to pay too much attention to initial failures. Resilience precludes doubts from turning into paralysis.

See the rest here: 
Self-Confidence Arises From Preparedness