Cognitive function refers to the mental processes that allow humans to carry out any task, encompassing aspects such as perception, memory, reasoning, and decision-making. Understanding cognitive function is crucial for identifying how the brain supports various intellectual abilities and how these can be affected by factors like aging, injury, or disease.