The Gospel of John shows it’s readers that Jesus is the promised Son of God.  You can have eternal life through believing in Jesus.

30 Now Jesus did many other signs in the presence of the disciples, which are not written in this book; 31 but these are written so that you may believe that Jesus is the Christ, the Son of God, and that by believing you may have life in his name. – John 20:30-31 ESV