The street lights in many cities contain bulbs with sodium vapor. When electrical energy is pass through the bulb, a brilliant yellow light is given off. What is happening to the sodium atoms to cause this? Explain.

How would magnesium and chlorine interact?

Please help. Thank You