What is the difference between affect and effect?

"Affect" acts as a verb while "effect" acts as a noun. For example, you would use the former spelling of the word when writing the sentence, "Alcohol consumption affects cognitive ability." Alternatively, you would use the latter spelling of the word when writing the sentence, "Alcohol consumption leads to negative effects on cognitive ability."