A capacitor is an electronic component that stores and releases electricity in a circuit.
It also passes alternating current without passing direct current. A capacitor is an indispensible part of electronic equipment and is thus almost invariably used in an electronic circuit.
For more details, please refer to the following.