Cognitive function refers to a variety of mental processes that include attention, memory, language, problem-solving, and decision-making. These processes allow individuals to acquire knowledge, understand and interact with the world, and perform everyday tasks.