do outer planets have gravity?
The four planets farthest from the Sun are the outer planets. ... Since the inner planets didn't have enough mass to hold on to these light gases, their hydrogen and helium floated away into space. The Sun and the massive outer planets had enough gravity to keep hydrogen and helium from drifting away.