If an object is thrown horizontally, the work done by the gravitational force is:
In the horizontal direction, the displacement is perpendicular to the gravitational force. The angle between the force of gravity and the displacement vector is 90 degrees, making the work done by gravity zero.