One important difference between the resistance and the impedance is that a resistor dissipates energy, it gets hot, but an inductor and a capacitor store the energy and can return that energy to the source when it goes down.