Definition of jam

What does the word jam mean?