Step-by-step explanation:
When electrons are shared between atoms, a covalent bond forms between the atoms. Covalent bonds involve the sharing of electron pairs between atoms to achieve a stable electron configuration, typically resulting in the formation of molecules. This type of bond is common in compounds composed of nonmetals.