1. Sodium has atomic number 11 and electronic configuration 2, 8, 1.
2. Sodium atom has 1 electron in its outermost shell.
3. It loses one electron from its outermost shell, i.e., M shell. Then its L shell becomes the outermost shell with a stable octet. The nucleus of sodium atom has 11 protons but the number of electrons in the atom has become 10. So, there is a net unit positive charge giving a sodium cation (Na+).
4. On the other hand, chlorine has electronic configuration 2, 8, 7. Chlorine atom has 7 electrons in its outermost shell and requires one electron to complete its octet.
5. Thus, the electron lost by sodium is taken up by chlorine.
6. When chlorine atom gains one electron, octet of chlorine is completed and its K, L, M shells have together 18 electrons and the nucleus has 17 protons. This leads to the formation of an ion (CP).
7. Thus, a chlorine atom accepts one electron from a sodium atom and consequently a chloride ion with one unit negative charge and a sodium ion with one unit positive charge are formed.
8. Sodium and chloride ions, being oppositely charged, attract each other due to the electrostatic force of attraction. An ionic bond is formed and this results in the formation of sodium chloride (NaCl) molecule.