Question: how are ions held together in sodium chloride?
Answer: The sodium ions and chloride ions are held together by the strong electrostatic attractions between the positive and negative charges. You need one sodium atom to provide the extra electron for one chlorine atom, so they combine together 1:1. The formula is therefore NaCl.