Here's why:
* Sodium (Na) has one valence electron. By losing this electron, it achieves a stable noble gas configuration like neon (Ne). This forms a positively charged sodium ion (Na+).
* Chlorine (Cl) has seven valence electrons. By gaining one electron, it also achieves a stable noble gas configuration like argon (Ar). This forms a negatively charged chloride ion (Cl-).
The electrostatic attraction between the positively charged sodium ion and the negatively charged chloride ion forms the ionic bond, resulting in the formation of sodium chloride (NaCl), also known as table salt.