One formula unit of sodium chloride contains an ionic bond. The sodium loses an electron to become positively charged, the chlorine atom accepts the electron to become negatively charged, and the two oppositely charged ions attract each other. This electrostatic force of attraction is called an ionic bond.