Some children, according to Dweck, are mastery oriented, as they attribute their successes to their high ability and their failures to events outside of themselves. These children will persist in spite of failures, because the failures have nothing to do with them really. Failure isn't about their ability. Failure is about something else. Not all children are mastery oriented.
Some children have what is called the learned helplessness orientation.
They believe that failures are due to stable internal causes, so they think that when they fail it is due to their lack of ability. And if they fail, they think of themselves as failures. Meanwhile, their idea of success is that it occurs only as a matter of luck or hard work. Also, children with the learned helplessness orientation tend to believe the entity view of skill. Children as young as 4 to 6 years of age can show these behavior patterns.