what (Adverb) — To so extreme a degree.
what (Pronoun) — Which thing or concept. ex. "what do you mean?"
what (Interjection) — Indicates incomprehension, a request to repeat for clarification.