Atoms join together in ionic bonds because their opposite charges attract each other. Therefore, the correct answer is:
○ ionic bonds and covalent bonds
However, it’s worth noting that while covalent bonds involve the sharing of electrons rather than attraction due to opposite charges, the specific focus here is on ionic bonds for their charge-based attraction.