Look inside a battery to see how it works. Select the battery voltage and little stick figures move charges from one end of the battery to the other. A voltmeter tells you the resulting battery voltage.
Look inside a resistor to see how it works. Increase the battery voltage to make more electrons flow though the resistor. Increase the resistance to block the flow of electrons. Watch the current and resistor temperature change.