1.
ending (of a story, film, show or game)
The final part of a work, and the way it ends (ハッピーエンディング). In anime and TV, also short for the ending theme song or credits.
意外なエンディングだった。
It was an unexpected ending.