What does salt do for cookies?

* Enhances flavor: Salt helps to balance the sweetness of cookies, making them more complex and delicious. It can also bring out the other flavors in the cookies, such as chocolate, vanilla, and nuts.

* Improves texture: Salt helps to strengthen the gluten in flour, which makes cookies chewier. It can also help to prevent cookies from spreading too much in the oven.

* Extends shelf life: Salt helps to preserve cookies, making them last longer.