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