What does the emission spectrum of a molecule show?

A. The energy the molecule absorbs as it undergoes a reaction to break down into its elements
B. The wavelengths of light a molecule gives off when an electron moves to lower energy levels
C. The wavelengths of light a molecule takes in when an electron moves to a higher energy level
D. The energy the elements give off as they undergo a reaction to form a molecule