How to cook corn on the cob

Wrap 'em in tinfoil. Bit of butter if you like. Air fryer them at 180 for 20 minutes.