Chlorine is an example of a Halogen only needing one electron to complete it’s octet. When it combines with sodium which is an alkali metal which has only one electron it’s outer shell it’s called NaCl or Sodium Chloride. They become Na+ and Cl-. It’s called an ionic bond.