(a) Sodium: 2, 8, 1. Chlorine: 2, 8, 7.
The sodium atom has one electron in its outermost shell, and the chlorine atom needs one more electron to complete its octet. So the sodium atom loses one electron, and the chlorine atom gains that electron:
Na→Na++e−
Cl+e−→Cl−
The electron passes from sodium to chlorine.
(b) The ions are the sodium ion, Na+ (sodium cation), with the configuration 2, 8, and the chloride ion, Cl− (chloride anion), with the configuration 2, 8, 8.
- Na+ (2, 8) has the same arrangement as neon.
- Cl− (2, 8, 8) has the same arrangement as argon.
Both ions now have a complete outermost shell, like a noble gas. Being oppositely charged, they attract each other by strong electrostatic forces and exist together as sodium chloride, NaCl, which is made of ions rather than molecules.

How the ionic bond forms in sodium chloride (and, for comparison, in magnesium chloride).