Electronegativity is a measure of an atom's ability to attract electrons when involved in a chemical bond.