Electron affinity is the quantity of energy released when an atom procures an electron. The more energy that is freed, the more readily an atom becomes an ion. An atom can entice more electrons. A specific chemical equation represents electron affinity. Electronegativity is the test of the ability of a molecule to bring in an electron and form a covalent bond.
The stronger pull employed by a molecule to pull particles toward it is called high electronegativity. This concept is not quantifiable and is used to clarify how covalent bonds are made. On the other hand, electron affinity can easily be measured by calculating the sum of energy released when an electron is separated from an atom. Affinity deals with one single atom, while electronegativity deals with atoms in a molecule.