Explanation
Sharing electrons in a covalent bond allows atoms to have a “stable” electron configuration in their outer shell.