what is the difference in electronegativity between nitrogen and oxygen?
But oxygen has 8 protons in the nucleus whereas nitrogen only has 7. A bonding pair will experience more attraction from the oxygen's nucleus than from nitrogen's, and so the electronegativity of oxygen is greater.