JOHN 1.1:In the beginning was the Word, and the Word was with God, and the Word was God. (ESV)
In verse one, John begins introducing the idea of the Trinitarian nature of God. The book of Genesis also does so when it says in chapter 1.26: “Then God said: ‘Let Us make man in Our image, according to Our likeness;” (NASB). And the “Word” being expressed as “with God” indicates that the Word is a distinct Person who is of the same nature and being and eternal existence with God.
The Greek text places the word order of this clause, “and God was the Word”. Whether the “Word” is placed in the sentence as subject or predicate is grammatically immaterial. But for interpreters seeking to make a big deal out of the absence of a definite article associated with the word “God”, their assertion that it should be interpreted “a god” looks even more meaningless, when the original word order is applied.
The verse Revelation 1.8 affirms God’s eternal being by stating, “I am the Alpha and the Omega,” says the Lord God, “who is and and who was and who is to come, the Almighty.” (ESV). And when Jesus says in John 8.58, “before Abraham was, I am” (ESV), He is asserting that He himself is Jehovah God, the same as God, the Father. Jesus is the “I AM”.
In 1 John 1.1-2, John writes of Jesus referring to Him as the word of life and that He was “with the Father.” John also makes reference in 1 John 5.6 to the Spirit testifying of Jesus Christ, and so from the insight of a number of verses in the New Testament, the Trinity is revealed as God, the Father, God the Son, and God, the Holy Spirit.
The oneness of Jesus with God the Father will be further developed in the Gospel of John, as well as in the writings of the Apostle Paul in Philippians 2.5 and following, and Colossians 1.15 and following.

