Answer
He might be suffering from food poisoning.
Work Step by Step
The junk food might have been spoiled in the night. Eating spoiled food might have caused food poisoning due to presence of pathogens and harmful toxins. His body is trying to remove bad food via vomiting.