This question already has an answer here:
I was reading about covalent bonding and got to know that in this type of bonding, the atoms of elements "share" electrons with each other to have an octet or duplet. But, I also have been taught that electrons keep on revolving around the nucleus of the atom, much like the planets around the sun. But, if this is true, how are the able to easily share electrons if these electrons keep on moving around their respective nuclei? I hope I have made myself clear. If not, then please tell in the comments.