Citation:
Ions are atoms or molecules that have gained or lost one or more electrons, giving them a net positive or negative charge. These charged particles play a crucial role in the formation of spectral lines, which are the characteristic patterns of light emitted or absorbed by different elements.