Resistors have a certain value of resistance specified in ohms (Ω), kilohms (kΩ), or megohms (MΩ). The function of a resistor is to oppose the flow of electrical current in an ac or dc circuit, just as a valve in a water pipe restricts the flow through the pipe.

