Preheat your oven to 350°F (175°C) so it’s fully heated before baking. Grease a 9x13-inch baking pan lightly with oil or non-stick spray. You can also line it with parchment paper for easier removal later.
In a medium bowl, whisk together the flour, cocoa powder, baking soda, baking powder, salt, and cinnamon. Make sure everything is evenly combined so the cake rises properly. This step helps distribute the leavening agents throughout the batter.
In a large bowl, beat the eggs until slightly frothy. Add the sugar, vegetable oil, and vanilla extract, mixing until smooth and well combined. The mixture should look glossy and slightly thick.
Gradually add the dry ingredients into the wet mixture, stirring gently until just combined. Avoid overmixing, as this can make the cake dense. The batter will appear thick at this stage.
Stir in the grated zucchini using a spatula. As you mix, you’ll notice the batter loosens because of the zucchini’s moisture. Fold in walnuts and chocolate chips if using, ensuring they are evenly distributed.
Pour the batter into the prepared pan and spread it evenly. Bake for 45 to 50 minutes, or until a toothpick inserted in the center comes out clean. Allow the cake to cool completely before slicing or frosting.