"A vigorous reaction occurs as both atoms form ions. The sodium transfers its extra electron to the chlorine - that gives the chlorine its magic eight valence electrons and gives the sodium a positive charge. These ions are immediately attracted to each other, and the salt sodium chloride is formed."
hope this helps!