As children grow and becomes less egocentric, they show increasing awareness of how they measure up against peers. Their perceptions of being accepted and their ability to get along affectively help to shape their feelings of self-worth.
via Appreciating Self-Worth — Zahra Habib