According to the article I linked below, there are 4 kinds of humor. Affiliative, Self-Enhancing, Aggressive, and Self-Defeating.
Affiliative humor means cracking jokes, engaging in banter, and otherwise using humor to make others like us.
Self-enhancing humor is an optimistic, coping humor, characterized by the ability to laugh at yourself or at the absurdity of a situation and feel better as a result.
Aggressive humor is characterized by sarcasm, teasing, criticism, and ridicule.
Self-defeating humor is attempting to get others to like us by putting ourselves down.
The lines between humor styles aren’t hard and fast, however, nor are the categories mutually exclusive — everyone’s individual sense of humor is a unique combination of all four styles).
Here’s a fun quiz to test yourself regarding your sense of humor.
Sense of humor quiz