Question: how many electrons does chlorine need to fill its outer shell?
Answer: One sodium (Na) atom gives it's electron to one chlorine (Cl) atom. Chlorine then has the eight electrons in its outer shell to make it "happy".