Confidence comes from believing that success is possible, knowing that failure is survivable, and having a vision of yourself that you want to live up to. We believe confidence has three parts: self-concept (how you see yourself), self-belief (how you believe in yourself), and self-compassion (how you treat yourself).
For more, see https://www.buildlegends.com/confidence.