The conversation between human and AI assistant.
What is the function of a resistor?
How does it do that?
A resistor is made up of a material that opposes the flow of electric current. As the current passes through the resistor, some of the electrical energy is converted into heat energy, which causes a drop in voltage across the resistor.