What is the ionization energy of an element?

Question options:

the energy needed to turn an atom into an anion

the energy needed to turn an atom into a cation

the energy needed to move an electron from an inner orbital to an outer orbital

the ability of an atom to attract new electrons