The broaden-and-build theory of positive emotions suggests that positive emotions broaden one's awareness and encourage novel, varied, and exploratory thoughts and actions. Over time, this broadened behavioral repertoire builds skills and resources. For example, curiosity about a landscape becomes valuable navigational knowledge; pleasant interactions with a stranger become a supportive friendship; aimless physical play becomes exercise and physical excellence.
This is in contrast to negative emotions, which prompt narrow, immediate survival-oriented behaviors. For example, the negative emotion of anxiety leads to the specific fight-or-flight response for immediate survival. On the other hand, positive emotions do not have any immediate survival value, because they take one's mind off immediate needs and stressors. However, over time, the skills and resources built by broadened behavior enhance survival.
The broaden-and-build theory is an exploration of the evolved function of positive emotions. It was developed by Barbara Fredrickson starting around 1998 and is commonly associated with positive psychology.