And of course we can do that already: pumped hydropower, we know how to make batteries and fuel cells running on hydrogen can also be seen as a sort of battery.
To have a useful range of 480km (300 miles) or so, an electric car using a fuel cell instead of a battery pack would require around 9kg (20 pounds) of hydrogen.