I understand that when I take H20, and NaCl and pass them across the electrically charged plates, I can see how H2 and Cl2 can be formed.

Since the H2 comes from water, the remaining oxygen will dissipate.
However the Cl2 come from NaCl. What happens to the sodium, where does it go?