In hydrogen or fuel cell cars, electricity is made from hydrogen. The principle and functionality of a fuel cell are simple and have been known for a long time:
The fuel cell was discovered in 1838 by Christian Friedrich Schönbein. The basic principle is nothing other than the reversal of electrolysis. With the help of electricity passed through a liquid, various substances such as caustic soda, chlorine gas or hydrogen can be produced. The opposite happens in the fuel cell, because electricity can be generated using various raw materials. This means that the fuel cell is not an energy storage device, but rather an energy converter.
In order for a fuel cell car to drive, it also needs an electric motor, which is then operated with the electricity generated in the fuel cell.