What do greenhouse gases in earth's atmosphere do?

Greeenhouse gases are but a little bit bad it's good if we didn't have green house gases the earth will be frozen