Step-by-step explanation:
The electronic configuration of sodium with Z = 11 is : 2, 8, 1
The electronic configuration of chlorine with Z = 17 is : 2, 8, 7
The Lewis structure is drawn in such a way that the octet of each atom is complete.
Thus, sodium losses one electron to chlorine and chlorine accepts this electron to form ionic bond.
Thus, the valence electrons are shown by dots in Lewis structure. The structure is shown in image below.