I have a question when the baby begins to form in the first developing stages what does it eat?? How does it eat?

Does it poop?

Like within the first month does the baby eat and how?