In NaOH, the attraction between Na⁺ and OH⁻ is ionic, while the O-H bond within the hydroxide ion is covalent.