Answers are quite obvious----since it is the foundations of the earth---before it was created---and obviously, the answer to the question of where Job was---he wasn't created yet so he wasn't around and didn't know a thing about it, that was the point!!
You can't even come close to th8nking that Job was around before the creation of the earth unless someone has told you such a thing!!! And that someone--is JS.
What is obvious is not so obvious. The text does not give the answer as to where he was. Maybe he didn't exist yet, or maybe he did, it simply does not say. So that point is a mute point from the text.
But now we know that God was talking to Job about creating the earth, so the event God is talking about was before the earth was finished. I agree.
So right in the middle of telling Job how he created the earth, God tells Job this interesting little piece of information:
Job 38:7
7 When the morning stars sang together, and all the sons of God shouted for joy?
First, who were the morning stars, and who were the sons of God and secondly,
why were the morning stars singing together and why were the sons of God shouting for joy?
It is obvious that during the creation of the earth, there were living entities that existed with God. 'sons of God' indicate that those living entities were God's sons. Pure Mormonism.
It doesn't matter what your interpretation is, our interpretation is that these sons of God mentioned here are really the sons of God, and they were shouting for joy because they could see the earth being created and they were joyful for the opportunity to come to earth as a mortals and progress.
This is our interpretation and, they were spirit sons of God, and it has just as much weight as any other interpretation and with other scriptures that lend weight to our interrpetation it turns out to be as solid or more solid than others.
Bottom line. There were living entities with God the Father before the earth was created. These living entities were called the sons of God. These sons of God lived before the earth was created and we know why they were shouting for joy.
Living entities (sons of God) before the earth was created. Mormonism 101.