Covalent Bonding
Covalent bonding occurs when two atoms share pairs of electrons to achieve a full outer shell, leading to greater stability. In the case of nitrogen and hydrogen, nitrogen has five valence electrons and needs three more to complete its octet, while each hydrogen atom has one electron. By sharing electrons, nitrogen can form three covalent bonds with three hydrogen atoms, resulting in the stable molecule NH3 (ammonia).