A resistor is a deliberate obstacle. Inside, carbon or metal film forces electrons to bounce around, converting electrical energy into heat (which is why resistors get hot).
Power supplies (DC-DC converters), radio tuners, and the hum you hear from old transformers. 4. The Diode (The One-Way Valve) Function: To allow current to flow in only one direction. electrical components and their functions
Inductors hate change. They resist sudden changes in current . If a capacitor is a water tank (pressure storage), an inductor is a heavy flywheel (flow storage). If you try to stop a flywheel instantly, it snaps the axle. Similarly, if you disconnect an inductor carrying current, it will generate a massive voltage spike to try to keep the current moving. (This is why relays have "flyback diodes"—to catch that spike.) A resistor is a deliberate obstacle