Both mangoes and bananas contain malic acid.
Malic acid is a naturally occurring organic compound that is found in many fruits and vegetables. It is a dicarboxylic acid, which means it has two carboxyl groups.
Malic acid contributes to the tart or sour taste of mangoes and bananas. It is also responsible for their refreshing flavor.
In mangoes, malic acid is present in higher concentrations than in bananas. This is why mangoes tend to have a more tart flavor than bananas.
Malic acid is also found in other fruits, such as apples, grapes, and cherries. It is also used as a food additive to add tartness to foods and beverages.