Battery tech is really the key. Lots of new chemistry in the works.
Which is cheaper and more environmentally friendly - electricity from the grid or gasoline from the station?
No, a willingness to lose your freedom of mobility, and being gullible enough to spend a ton of money and end up with less than you started with are bigger keys.
Also the snooty ignorance of using electricty, the generation and transmission of which are grossly inefficient, and dirty, and overloading the power grid even further to boot, is an important key.