Dr. Lee, how is it that the marshmallows cook without the tray or the air getting hot?
That's not how a regular oven works.
So only the food gets warm?
Yes and no. Other things can get hot by being in physical contact with the hot food.
The microwave oven generates electromagnetic waves (called microwaves) which makes water move.
This motion leads to friction, and friction leads to heating.