Atoms join together in ionic bonds because their opposite charges attract each other. So the correct response from the options provided is:
ionic bonds and hydrogen bonds.
Although hydrogen bonds are typically a weaker type of interaction, they also involve the attraction between oppositely charged regions of molecules.