結果 : what is the function of resistor in an electric circuit