use of electrolyte in electrochemical cell
An electrolyte is a substance that contains free ions which makes it electrically conductive. In simple words, when an electric current is passed through an electrolyte, it conducts electricity. The carrier of charge are free ions which can have a net positive or negative charge.
The chemical reaction take place in the electrolyte which generate the electrons which are passed through the circuit in order to produce the current.