The electrical energy itself has no by-products. But the production of electrical energy has tons of byproducts.
For a coal power plant:
CO2
sulfur oxides
lead
cadmium
mercury
radon
and lots more.
For a coal power plant:
CO2
sulfur oxides
lead
cadmium
mercury
radon
and lots more.