Electron affinity is a measure of the energy released when an electron is added to an atom to create a negatively charged ion.