How Children Actually Learn Hope When the World Feels Uncertain

What actually helps children stay hopeful when certainty is not guaranteed?