Question: what does baking powder do in cookies?
Answer: Baking powder is a two-in-one chemical leavening that combines a powdered alkali (sodium bicarbonate) with a powdered acid (originally, tartaric acid). When moistened in a dough or batter, a chemical reaction takes place that produces carbon dioxide gas, inflating cookies, cakes, and pancakes.