What is the correct definition of a resistor?

O a substance capable of transmitting and creating an electric charge

O a component that resists the flow of electricity

O a device that allows electrical energy to flow through a complete path

O the difference in electric charge between two points​