What does the Literary Device Foreshadowing Mean?

Foreshadowing is the prediction and hint of what is to come. Foreshadowing is used in literature to give the reader a sense of understanding about what is going to take place.