How do you convert electrical energy to heat energy?

1,038,851questions on
Apply a potential difference (a voltage) across a resistance, current flows according to Ohm's law (V=IR) and energy is dissipated as heat according to the power rule P=$I^2R$