Answer: ionic compound
Step-by-step explanation:
An ionic compound is formed when one element completely transfers its valence electron to another element. The element which donates the electron is known as electropositive element and forms a positively charged ion called as cation. The element which accepts the electrons is known as electronegative element and forms a negatively charged ion called as anion.
For formation of sodium chloride:
Electronic configuration of sodium:
![[Na]=1s^22s^22p^63s^1](https://img.qammunity.org/2020/formulas/physics/high-school/a83x14a49r7a719chvz9iy9h3ezw9kyupa.png)
Sodium atom will loose one electron to gain noble gas configuration and form sodium cation with +1 charge.
![[Na^+]=1s^22s^22p^63s^0](https://img.qammunity.org/2020/formulas/physics/high-school/iggza98wnmpr3xnzzovjimn8a5atdpx9qr.png)
Electronic configuration of chlorine:
![[Cl]=1s^22s^22p^63s^23p^5](https://img.qammunity.org/2020/formulas/physics/high-school/htzaac8frg5kul80i9q5iotmnda8y76bas.png)
Chlorine atom will gain one electron to gain noble gas configuration and form chloride ion with -1 charge.
![[Cl^-]=1s^22s^22p^63s^23p^6](https://img.qammunity.org/2020/formulas/physics/high-school/4asj1vyjlhxcwpxow5ijahwuue2vem3hf3.png)
The cations and anions being oppositely charged attract each other through strong coloumbic forces and form an ionic compound.