Suppose we want to pass current through a potato. So, we connect ends of a battery by copper wire with potato by inserting in it. The electrons from negative potential of battery through copper wire reach in potato where they undergo in electrolysis (chemical reaction) inside the potato in the presence of potato juice (starch).
This process releases electrons in potato and increases the negative ions. When these negative ions reach the other end of copper wire (positive terminal) it reacts with part of the copper wire inside the potato and makes a compound of copper which is bluish-green in color.
This is the reason for greenish spots in potato on passing a current through it. It always appears around the copper wire connected to the positive terminal of the battery. This is an example that electricity causes chemical reactions. This chemical reaction causes colour change.