This is one of the most basic and important differences between bonds (and the resulting molecules) in chemistry. This can be easily predicted (because the electronegativity of all the atoms in the periodic table is known). It creates an enormous difference in how the molecules behave.