Pickles are made by soaking cucumbers in a mixture of
table salt (sodium chloride), water, and spices. If you
place a cathode and anode at either end of the pickle, it
will light up. Why does this happen, and why won' the
experiment work if you plug in a plain cucumber instead?

Q&A Education