Atoms join together in ionic bonds because their opposite charges attract each other. So the correct response is:
ionic bonds and covalent bonds
However, it's important to note that covalent bonds involve the sharing of electrons between atoms, rather than the attraction of opposite charges. If you're looking for just the type of bond where opposite charges attract, the best answer would focus on ionic bonds specifically.