A passive electrical component that can store energy in a magnetic field created by the electric current…