I disagree.
Electricity means range of travel is dependent on battery reserves. These reserves are generally low range. Batteries may be recharged, but not instantaneously; one cannot just fill a tank and go again, but rather wait 12 hours to recharge a battery bank, as that's how long it takes.
Battery banks can be made bigger, but batteries are expensive, heavy, and have a lifespan. When they're depleted, the cost to replace the batteries may outweigh the cost of the car. You won't see 30 year-old, cheap, economical cars on the road, as you do now, in a future that is all electric. And where cars are disposable, it should be remembered that the greatest expenditure over one's ownership of a car is the manufacturing itself of that new car.
The electricity has to be made somewhere. Currently, this is largely coming from sources with emissions. The batteries also have a lengthy manufacturing process.
Hydrogen ought to be the future. It comes out of water, it can be pumped into a tank immediately just like gasoline, and has no greater propensity for cost-negating wear items such as batteries.