Hello Paultx. No whatever cannot be used as a verb... the meaning of your sentence is that the boy has answered ignorantly - by saying whatever - as a reply to what the girl has said to him.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.