But in recent years, EVs have come into their own, thanks to improvements in battery technology and charging infrastructure.