Answer: All of the above.
Step-by-step explanation:
The liver is simply the largest solid organ in the body and it can be found below the rib cage in the upper abdomen by the right. It's function is to maintain the blood sugar, regulate blood clotting and remove toxins from the blood.
It should be noted that the liver develops as a ventral outgrowth of the embryonic foregut. It also helps in the incorporation of both the endodermal and the mesodermal components. Furthermore, it's developed in the ventral mesentery and is connected to the stomach by the lesser omentum.
Therefore, all of the above options are correct.