You might guess that a largely joyful story full of episodes that amuse, and that aren't life-and-death, would tie up neatly. Not so with Anne of Green Gables.
Matthew dies in the second-to-last chapter, and at the end, all the characters are still reeling from it. Their lives have changed, and Anne isn't off to college like she thought she'd be.
The book ends as it started, with quiet scenes: Anne makes up with Gilbert Blythe and then returns to the house. How fitting is it that the story ends with Anne looking out of her bedroom window? It matches the title, doesn't it? She's home, and whatever she goes through, she'll always have the experience of belonging somewhere, and having a family.
And, the narration reminds us, she has something else, something in her character that made her resilient, even before Green Gables: "nothing could rob her of her birthright of fancy or her ideal world of dreams." (38.63)
Bottom line: Anne's going through some stuff, but she has a lot going for her. She's going to be a-okay.