Some time ago I was asked to advise on the acceptability of jokes
The short answer is Proverbs 26:18 and 19 "Like a madman who throws sparks, arrows, and death,
So is a man who deceived his neighbour, And says, “I was only joking!”
The problem is that much of the time jokes are lies and it is written in Revelation 21:8 that ALL liars shall have a part in the Lake of Fire and Brimstone which is the second death
So, broadly, I recommend that one avoids jokes -- this is distinct from real incidents which are humorous or entertaining but even here one needs to be cautious because frequently such humour is at the expense of someone else
May Yah the Eternally Self-Existing, the Almighty Creator, bless you and keep you and make His face to shine upon you.