What is inside a battery an how does it work?

what inside of a battery is these little type of chemical that are produced by electrical energy and that make anything work for example TV control it work when u put the battery in the control because it is producing energy with those little chemical inside of the battery