Preheat your oven to 350°F (175°C). Grease or line a 9x13-inch baking pan with parchment paper.
In a large mixing bowl, whisk together the melted butter and granulated sugar until smooth.
Add the vanilla extract and then the eggs, one at a time, whisking well after each addition.
In a separate bowl, sift together the flour, cocoa powder, and salt.
Gradually stir the dry ingredients into the wet mixture until just combined—don’t overmix.
Fold in the chopped candy corn and chocolate chips (if using).
Spread the batter evenly in the prepared pan.
(Optional) Press a few extra whole candy corn pieces gently into the top of the batter for a festive finish.
Bake for 28–32 minutes, until a toothpick inserted in the center comes out with just a few moist crumbs.
Allow to cool completely in the pan before slicing into squares.