The dough in cookie dough only reaches the iconic texture when baking soda or baking powder is added to the mixture. This is why the classic combination of butter, sugar, salt, eggs, and flour can also be used to make cake and bread. It's the added baking soda that turns it into cookie dough.