I drove 1800 miles in a Hydrogen Car

i was watching an electrolysis of water video before this and Ive seen engines that run on water.   So im curious about the idea of doing electrolysis of water to make hydrogen for a car like this.  I do mean in the car as part of the hydrogen fuel design.  Can the oxygen maybe be used also or just released
?