A battery is a device that stores chemical energy and converts it to electrical energy. Two terminals made of different chemicals (typically metals), the anode and the cathode; and the electrolyte, which separates these terminals.
Hope I get it and hope this helps