An inductor is a passive electrical component with two terminals and is used to store energy when electric current passes through it in a magnetic field. An inductor is made of insulated wire round into a coil around the core.
Once current passes through an inductor varies, a magnetic field with time varying induces a voltage called e.m.f in a conductor around the core as stated by faraday’s law. The change of magnetic field found around an inductor corresponds to the current change. So, when the magnetic field varies, a voltage is created across the terminals of an inductor that oppose this change. Inductor is used to block AC while allowing DC to pass in a circuit.