It is a process that leads to chemical change when an electric current is passed through an electrolyte.
During the electrolysis process, the negatively charged ions lose the electrons and undergo oxidation while the positively charged ions gain the electrons and undergo the reduction process.
At anode:
At the anode, electrons leave the electrolyte.
It is connected to the positive terminal of the battery.
The anions are discharged at the anode.
Oxidation takes place at the anode.
During electrolysis of molten Sodium chloride , the reactions that take place at the anode and cathode are discussed below: