Pronoun

“What's that smell?” “I don't know, but whatever it is, it's awful!”

Whatever you do, don't press that button!

Adjective

She will buy the painting at whatever price.

There's no evidence whatever to support your theory.

Adverb