An atom's electronegativity is affected by both its atomic number and the size of the atom. The higher its electronegativity, the more an element attracts electrons. The opposite of electronegativity is electropositivity, which is a measure of an element's ability to donate electrons.