I saw a video of an orangutan striking another orangutan on the head with something that looks like a coconut. The narrator said that the orangutan was dumb for doing that. The orangutan that was hit in the head pushed the hitter back with its arm, showing its displeasure. In fact the reaction is quite similar to a human that has been wronged by a friend, a push back. We don't know if the hitter was really dumb or he was being humorous.
They do in their own way, they pull pranks on other animals they are friends with, playfully bite and or sneak around. But they don't know what humans are saying only the tone, they wouldn't know a joke to be funny.