There are several kinds of fuel cells, and each operates a bit differently. But in general terms, hydrogen atoms enter a fuel cell at the anode where a chemical reaction strips them of their electrons. The hydrogen atoms are now "ionized," and carry a positive electrical charge. The negatively charged electrons provide the current through wires to do work. If alternating current (AC) is needed, the DC output of the fuel cell must be routed through a conversion device called an inverter.