Recurring theme:

Laughter used to defeat evil

Needful Things

Alan Pangborn ultimately defeats Leland Gaunt with his magic tricks.

It

Bill tells his friends that Pennywise can be defeated by jokes and riddles.

The Dark Tower IV: Wizard and Glass

Blaine's mechanical brain is fried from the effort involved in answering the jokes and riddles from Jake's book.