Ionic bonding transpires via electron transfer between atoms, commonly metals and non-metals. For instance, in sodium chloride (NaCl), sodium (Na) relinquishes an electron to chlorine (Cl), creating Na\(^+\) and Cl\(^-\) ions. These ions are subsequently bound by electrostatic attraction, serving as a quintessential illustration of ionic bonding. Consequently, NaCl is identified as the compound demonstrating ionic bonding.