Take Cupric Chloride $$(CuCl_2)$$ solution in a beaker. Dip two graphite rod in it. Pass $$5V$$ electricity through it.
Which gas evolved out through a positive electrode? How did you identify that gas?
Chloride ions are oxidised by electron loss to form chlorine gas at the positive electrode.
Bubbles on surface of electrode indicates chlorine gas.
$$2Cl^- \rightarrow Cl_2 +2e^-$$