NaCl is an ionic compound. How is an ionic bond is formed in NaCl?
No. of electrons in valance shell of Na=1
No. of electrons in valance shell of Cl=7
So, Sodium donates its valance electron to chlorine and (both completing its octet in the process) forming an ionic bond.