All of the halogens have 7 electrons, and they just require one more electron to have a whole octet.
The hypothesis that main-group elements typically bind in a way that each atom has eight electrons in its valence shell, giving it the same electrical configuration as a noble gas, is reflected in the octet rule, a chemical rule of thumb.
The orbitals of the atom's nucleus must have certain electron arrangements according to the octet rule. Additionally, it establishes whether electrons are gained or lost during chemical reactions and gauges an atom's chemical reactivity depending on its particular electron configuration.
Covalent bonds rely on the octet rule because sharing electrons gives both atoms a full valence shell. Like noble gases, all atoms aim to have a complete valence shell. The most stable electron configuration is this one. for example, If chlorine removes one of its seven valence electrons, it will have eight (an octet). When chlorine gains one electron, its electron configuration resembles that of argon. If chlorine had given up all seven of its valence electrons and sodium had taken them, the octet rule would have been met.
To know more about octet rule refer to: https://brainly.com/question/11156152
#SPJ4