Answer:
When excited electrons fall to lower energy levels, they can release energy in the form of light. metal ions in the salts used in the flame tests.