Different chemical bonds hold different amounts of energy.
If the reactant molecules in a reaction have more energy in their chemical bonds than the product molecules, will energy be absorbed or released overall?
released
endothermic reaction because the products have more energy than the reactants
Exothermic reaction
Bond energy
The amount of energy needed to break one mole of a particular covalent bond
In exothermic reactions the energy released by forming bonds is greater than the energy used to break them. In endothermic reactions the energy used to break bonds is greater than the energy released by forming them
Chlorine and bromine react with hydrogen in a similar way. Br-Br bonds are weaker than Cl-Cl bonds and H-Br bonds are weaker than H-Cl bonds. So less energy is needed to break the bonds in the reaction with bromine, but less energy is released when the new bonds form. So unless you know the exact difference, you can't say which reaction releases more energy