Carbon’s electronegativity is 2.5, equal to iodine, and only somewhat lower than fbluorine, chlorine, or Bromine. So, carbon can form a covalent bond with halogens in which it partially shares electrons.