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