Inductor
Is a passive two-terminal electrical component that stores energy in a magnetic field when electric current flows through it.
Resistor
A resistor is a passive two-terminal electrical component that implements electrical resistance as a circuit element. In electronic circuits, resistors are used to reduce current flow, adjust signal levels, to divide voltages, bias active elements, and terminate transmission lines, among other uses.