Electronegativity is the ability of an atom in a chemical compound to attract a bond pair of electrons towards itself.
Electronegativity of any given element is not constant. It varies according to the element to which it is bound. It is not a measurable quantity. It is only a relative number.
On the other hand, electron gain enthalpy is the enthalpy change that takes place when an electron is added to a neutral gaseous atom to form an anion. It can be negative or positive depending upon whether the electron is added or removed. An element has a constant value of the electron gain enthalpy that can be measured experimentally.
Such a group of atoms is called a molecule. Obviously, there must be some force that holds these constituent atoms together in the molecules. The attractive force which holds various constituents (atoms, ions, etc.) together in different chemical species is called a chemical bond.
There are 4 types of chemical bonds which are formed by atoms or molecules to yield compounds.