Where does humour come from?

Where do you think your sense of humour comes from? Is it genetic or learnt? Think about that while you click ...