Are salts an example of ionic compound?

Yes, salts are an example of ionic compounds.

Salts are formed when an acid and a base react, resulting in the formation of water and a salt. During this reaction, the positively charged ions (cations) from the base combine with the negatively charged ions (anions) from the acid to form an ionic compound. This compound is what we commonly refer to as a salt.

For example, when sodium hydroxide (NaOH), a base, reacts with hydrochloric acid (HCl), an acid, it produces water (H2O) and sodium chloride (NaCl), a salt. In this reaction, the sodium ions (Na+) from the base combine with the chloride ions (Cl-) from the acid to form the ionic compound sodium chloride.

This concept applies to all salts, where a metal cation from a base combines with a non-metal anion from an acid to form an ionic compound. It's important to note that not all ionic compounds are salts, but all salts are ionic compounds.