There is a mixture of a covalent and an ionic bond in this compound. Na and OH have ionic bonding, and O and H have covalent bonding.
Work Step by Step
In $OH^-$, Oxygen and hydrogen share an electron, making a covalent bond. And in Na and OH, Na gives an electron to OH and forms a ionic bond.