A chemical bond involving the sharing of electron pairs between atoms is known as a covalent bond.
Chlorine:
Chlorine has an atomic number so its electronic configuration . So, chlorine has valence electrons.
To complete its octet, each chlorine shares its one electron and a chlorine molecule () having a covalent bond is formed.
The formation of chlorine moleule is shown below:
There must be a significant difference in their electronegativities for an ionic connection to form between them, which doesn't exist as both the chlorine atoms will have the same electronegativity.