01 - Preheat the oven to 350°F. Grease a 9x5-inch loaf pan and line with parchment paper for easy removal.
02 - In a medium bowl, whisk together the flour, cocoa powder, baking soda, and salt.
03 - In a large bowl, blend the mashed bananas, melted butter, sugar, eggs, and vanilla extract until smooth.
04 - Gently fold the dry ingredients into the wet mixture until just combined, avoiding overmixing.
05 - Fold in the chocolate chips and nuts, if using, ensuring even distribution.
06 - Pour the batter into the prepared loaf pan and smooth the surface evenly.
07 - Bake for 50 to 60 minutes, or until a toothpick inserted in the center emerges with a few moist crumbs.
08 - Allow the loaf to cool in the pan for 10 minutes, then transfer to a wire rack to cool completely before slicing.