How energy transformation occurs in turning on a flashlight?

How energy transformation occurs in turning on a flashlight?

When the flashlight is turned on, the chemical energy stored in batteries is converted into electrical energy that flows through wires of flashlight. This electrical energy is then transformed into light and heat energies.