What is foreshadowing?

Foreshadowing is a literary device in which a writer gives hints or clues about what will happen later in the story. It can help build suspense, create tension, and add depth to the story by suggesting future events or outcomes. Foreshadowing can be subtle or more direct, and can take many forms, such as recurring symbols, mysterious events, or ominous prophecies.