The study of the chemical reactions and interactions that contribute to the flavor of foods and beverages.