Remove the husk and silk from the corn ears. You can rinse the ears to remove any dirt. Then dry with a paper towel. If you like, remove the stems or cut the ears in half.
You can either spray with oil or not (The corn can be crispier if you use oil). Then place the corn in the air fryer basket. Cook at 380°F (200°C) for 13-15 minutes, turning in between at least once.
Transfer the cooked corn onto a large plate. Brush with melted butter. Season with salt and pepper. Enjoy as is or make it spicy as below.
Optionally, you can mix salt, pepper and red chili powder in a small bowl. Then sprinkle the mixture on the corn. Or use dip half a lime in the spice mix, and rub the lime over the corn. Garnish with chopped cilantro. This is Indian street style spiced corn.