capacitor is a little like a battery. Although they work in completely different ways, capacitors and batteries both store electrical energy.