As the glossopharyngeal nerve [IX] passes through the area of the anterior triangle of the neck it innervates the stylopharyngeus muscle, sends a branch to the carotid sinus, and supplies sensory branches to the pharynx.
The vagus nerve [X] exits the cranial cavity through the jugular foramen between the glossopharyngeal [IX] and accessory [XI] nerves.