In short
Electronegativity is a measure of how strongly an atom attracts the shared electrons in a covalent bond. Fluorine has the highest value.
On the Pauling scale, fluorine is and caesium is about . A bond between two atoms of very different electronegativity is polar, with the shared pair closer to the more electronegative atom, and a difference above about is usually treated as ionic. Electronegativity rises across a period and falls down a group.
In hydrogen chloride, chlorine () pulls the shared pair more strongly than hydrogen (). Chlorine is slightly negative and hydrogen is slightly positive.