Electronegativity is the ability of one atom to attract another atom's electrons when the atoms are bonded together.