What Does Have Fun Mean?

What does it mean when someone says have fun?

.

What does fun mean in slang?

How do you say have fun?

What is the use of have fun?