An example of an ionic compound is NaCl.