In terms of Carbon, they produce about one third of the damage which an equivalent internal combustion engine car would.
There's a lot of factors that go into the final figures, like the specifics of the vehicle and the source of the energy used to charge it.
It's a bit like vaping instead of smoking. Neither are good for you but one is clearly worse than the other.