how is an ionic compound say, sodium chloride formed ?
Dear Student,
sodium chloride is formed when sodium atom loses one electron and forms cation and when chlorine atom accepts electron and becomes anion. The attraction between cation and anion results in an ionic compound.