Understanding how humor operates both positively and negatively supports more thoughtful communication.