Joh 1:1 -
- Joh 1:1 ¶ In the beginning was the Word, and the Word was with God, and the Word was God.
- Ge 1:1 ¶ In the beginning God created the heaven and the earth.
In the beginning was the Word
Using Eliezer's Rule of transference, whenever God created he spoke words to effect the creation, therefore, the word for 'create' ברא can also be said to be "the WORD which created".
the Word was with God
בראשית ברא אלהים Ge 1:1
There is another derivation of the doctrine. Split 'bereshith' in half: created ברא six שית. God created in six days, but he also created six testimonies.  By formation, 'six' שית is: God's Word returned with an increase ש God י finished his work ת. 'God' is in 'six' so the Word ברא is with God י in the beginnig בראשית.
The third derivation is suggested by Jesus saying that he was before the foundation of the world, or before the beginning.  This is also an ancient riddle asking "Why does Ge 1:1 start with he second letter of the alphabet and not the first?"
The answer is that it starts with an invisible aleph. The invisible aleph suggests Christ glory before the beginning, and of the Trinity, as well as many other things, but it also tells how the Word was with God 'in the beginning' or in 'bereshit'.
the WORD was God
- 1Jo 5:7 For there are three that bear record in heaven, the Father, the Word, and the Holy Ghost: and these three are one. 1Jo 5:8 And there are three that bear witness in earth, the Spirit, and the water, and the blood: and these three agree in one.
- Joh 17:5 And now, O Father, glorify thou me with thine own self with the glory which I had with thee before the world was.