Melt butter in a large skillet over medium heat.
Add the chopped onion and sauté for about 5 minutes until soft.
Stir in the yellow squash and cook until tender, about 5 to 7 minutes.
Add the corn and stir to combine. Cook for another 2-3 minutes until heated through.
Season with salt and pepper to taste before serving.