What is a Capacitor Used for?

Capacitor are used in electronic circuits to block the flow of direct current while allowing the alternating current to pass, to filter out interference and to smooth the output power supply.