Which of the following best describes the greenhouse effect?
A) The process of growing plants in enclosed spaces
B) The trapping of heat in the Earth's atmosphere
C) The reflection of sunlight from ice caps
D) The cooling of the Earth's surface at night