Ionic bonding is an electrostatic attraction between oppositely charged molecules. In ionic bonding the metal ion will donate electrons to become a cation, positively charged, whilst the non metal will accept electrons to become an anion, negatively charged. An example of ionic bonding is in the compound sodium bromide (NaBr). Sodium has 3 shells with 1 outer electron and bromine has 4 shells with 7 outer electrons. This allows the sodium to donate its electron to the bromine to gain a positive charge and give bromine a negative charge, this leaves both elements with a full outer shell. These opposite charges allow the molecules to attract.