BASIC BATTERY SET-UP
A source of direct current is connected to a pair of inert electrodes immersed in molten sodium chloride. Because the salt has been heated until it melts, the Na+ ions flow toward the negative electrode and the Cl- ions flow toward the positive electrode.
When Na+ ions collide with the negative electrode, the battery carries a large enough potential to force these ions to pick up electrons to form sodium metal.
Cl- ions that collide with the positive electrode are oxidized to Cl2 gas, which bubbles off at this electrode.