01 - Preheat oven to 350°F. Grease and line a 9-inch square or round cake pan.
02 - In a large mixing bowl, whisk together mashed bananas, eggs, vegetable oil, granulated sugar, light brown sugar, and vanilla extract until the mixture is smooth.
03 - In a separate bowl, whisk together all-purpose flour, baking soda, baking powder, ground cinnamon, and salt.
04 - Gradually add the dry ingredients to the wet mixture, stirring gently with a spatula until just combined. Avoid overmixing to maintain a tender cake texture.
05 - Fold in chopped walnuts or pecans and chocolate chips, if desired.
06 - Pour the batter into the prepared pan. Smooth the top evenly. Bake for 35 to 40 minutes, or until a toothpick inserted into the center emerges clean.
07 - Let the cake cool in the pan for 10 minutes before transferring to a wire rack. Cool completely before serving warm or at room temperature.