01 - Preheat the oven to 350°F. Grease and flour a 9x5-inch loaf pan or line with parchment paper.
02 - In a large bowl, whisk together the flour, baking soda, baking powder, salt, cinnamon, nutmeg, and ginger until well blended.
03 - In a separate bowl, beat the eggs. Add mashed bananas, oil, brown sugar, granulated sugar, and vanilla extract. Mix until fully incorporated.
04 - Stir the grated carrots into the wet ingredient mixture until evenly distributed.
05 - Pour the wet mixture into the dry ingredients. Mix gently until just combined. Do not overmix to prevent dense texture.
06 - Fold in the chopped walnuts if using, being careful not to overwork the batter.
07 - Pour batter into the prepared loaf pan and spread evenly. Bake for 50 to 60 minutes, or until a toothpick inserted in the center comes out clean.
08 - Let the bread cool in the pan for 10 minutes, then transfer to a wire rack to cool completely before slicing.