Here’s an easy way to cook corn on the cob: grilled corn in foil! Wrap it in aluminum foil and it’s mostly hands off while you grill the rest of the meal.
Preheat a grill to medium-high heat (375 to 450 degrees Fahrenheit).
Shuck the corn. Place each corn cob in a sheet of aluminum foil. Rub it with olive oil and sprinkle with salt and pepper. Top it with a few thin pats of butter (1/2 tablespoon in each packet). Seal foil around corn, sealing the edges at the top but not making it too tight. Poke a few small holes in each packet.
Place the packets on the grill grates and grill for 20 to 25 minutes, turning occasionally, until corn is bright yellow and cooked.