01 - Preheat oven to 350°F (175°C). Grease and line a 9-inch square or round cake pan.
02 - In a large mixing bowl, whisk the mashed bananas, eggs, vegetable oil, granulated sugar, light brown sugar, and vanilla extract until fully blended and smooth.
03 - In a separate bowl, whisk together all-purpose flour, baking soda, baking powder, ground cinnamon, and salt.
04 - Gradually incorporate the dry mixture into the banana mixture, stirring until just combined. Avoid overmixing to maintain a tender texture.
05 - Gently fold in the chopped walnuts or pecans and chocolate chips if desired.
06 - Transfer the batter into the prepared pan, smoothing the surface evenly. Bake for 35–40 minutes or until a toothpick inserted in the center emerges clean.
07 - Allow to cool in the pan for 10 minutes, then transfer to a wire rack to cool completely. Slice and serve warm or at room temperature.