I was 8 or 9 when I learned about electrolysis of water to produce hydrogen and oxygen. Not sure how old I was when my dad warned me about chlorine if I used the wrong salt in the water, but chlorine is a nice clear example of why the thing you use the electricity for matters.