Answer
Electrons are transferred between atoms just like hydrogen protons are transferred between molecules.
Work Step by Step
In both reactions, the role of each reactant depends on whether they possess a reactive electron or hydrogen (depending on the type of reaction).