When two atoms each need additional electrons to fill their valence shells, but neither is electronegative enough to steal electrons
from the other, they can form another kind of chemical bond called a
covalent bond. In covalent bonds, two atoms move close enough to share
some electrons.
They try to share or take electrons.
I hope this helps!