Atoms join together in ionic bonds because their opposite charges attract each other. So the correct answer is:
ionic bonds and covalent bonds (though note that the covalent bond is based on sharing electrons, not charge attraction).
If you're focusing specifically on the attraction of opposite charges, then only ionic bonds are relevant from your options.