difference between electronegativity and electron affinity
Electronegativity is the ability of molecule to attract an electron to form a covalent bond. It deals with atoms in a molecule and their tendency to attract electrons.
Electron affinity is the amount of energy released when an electron is gained by some atom. It deals with a single atom.
Electronegativity cannot be measured. Electron affinity is a fixed and measurable value.