What are the advantages of fuel cells?

The most important advantage of fuel cells is that their only byproduct is water, and of course discarded parts. The disadvantage is that the hydrogen used in them has to be electrolyzed from water or found in some other way. Because of the law of conservation of energy, fuel cells do not produce energy, they only store it.