Answer:
The author uses dramatic irony to create humor.
Step-by-step explanation:
Dramatic irony is used to show that the audience knows more than the character on stage. A character does or says something of greater importance than he or she knows. The audience, however, understands the meaning and importance of the act or speech. Only the audience knows that all along, Peter is creating the mess on the carpet. Dramatic irony in this play creates humor.