Thumbnail: The crystal structure of sodium chloride, NaCl, a typical ionic compound. The purple spheres represent sodium cations, $$\ce{Na^{+}}$$, and the green spheres represent chloride anions, $$\ce{Cl^{−}}$$. (Public Domain; Benjah-bmm27 via Wikipedia)