What happens when the compound NaCl is formed?

Sodium transfers an electron to chlorine.

Sodium receives two electrons from chlorine.

Sodium forms an ion with −1 charge and chlorine forms an ion with +1 charge.

Sodium forms an ion with +2 charge and chlorine forms an ion with −2 charge.