how can chemical energy change into electrical energy??
The chemical reaction taking place within an electric cell converts chemical energy into electrical energy and the reaction continues only when the two terminals of the cells are connected by a wire or a circuit.