Sodium chloride is an example of an ionic compound. An ionic compound is composed of a positively charged cation and a negatively charged anion that are held together by their attractive forces. For table salt, Sodium chloride, Sodium is the cation and Chloride is the anion.