How important is baking soda in cookies from scratch, and what does it do?

What does baking soda do? And why is it needed? And how important is it. And can it be substituted with regular soda? My friend and I are baking. :)

Please answer asap
6 answers 6