Answer:
Every element has its own particular spectrum of colours that the atoms or ions will emit when energy (in this case heat) is supplied. ... So, the sodium in sodium chloride, sodium nitrate, etc all produce the same bright yellow colour that is a characteristic of sodium.