It's a common fallacy that electric cars are just "moving the emission source" and therefore no better than gasoline cars. However, even if 100% of the electricity is generated from coal, an EV is actually much more environmentally friendly than any gasoline-powered car.
It all comes down to efficiency numbers. Power plants and electric motors are just massively more efficient than gasoline engines, and it's much easier to scrub the emissions on one pipe than many.
Of course, they also make it easier to transition to renewable sources (replacing one power plant vs. replacing many cars), but that's just icing on the cake.