When an element composed of atoms that readily get rid of electrons (a metallic) reacts with a component made up of atoms that quickly attain electrons (a nonmetal), a transfer of electrons generally happens, creating ions. The compound formed by this transfer is stabilized through the electrostatic attractions (ionic bonds) https://lorenzouuvso.blue-blogs.com/36294995/5-essential-elements-for-potassium-cyanide-co-to-jest