Answer:
Ionic compounds are (usually) formed when a metal reacts with a nonmetal (or a polyatomic ion). Covalent compounds are formed when two nonmetals react with each other. Since hydrogen is a nonmetal, binary compounds containing hydrogen are also usually covalent compounds.
I hope its help
Explanation: