Electronegativity is a measure of the tendency of an atom to attract shared electrons in a chemical bond.