Electric cars a completely green answer for dealing with global pollution

Electric cars a completely green answer for dealing with global pollution
Are electric cars a completely green answer for dealing with global pollution?

The United Kingdom (UK) government announced new diesel and petrol vehicles will be banned within the United Kingdom (UK) from 2040 as a means of tackling air pollution.

Electric cars are regarded as a cleaner alternative with roughly 266 million vehicles expected to be on the road by 2040 according to petroleum organisation OPEC.

France also set 2040 as the year in which petrol and diesel cars will be completely banned.

Despite these government announcements, how environmentally-friendly are electric cars, and are they a viable solution to combat global pollution?