Ionic compounds are formed when there is a complete transfer of electrons from one atom to another, resulting in the formation of positively charged ions (cations) and negatively charged ions (anions). The electrostatic attraction between these oppositely charged ions holds the ionic compound together. In contrast, molecular compounds are formed by the sharing of electrons between atoms, leading to the formation of covalent bonds. The covalent bonds in dextrose hold the atoms together and determine its molecular properties, such as its structure, shape, and reactivity.