•Whatever is:
-indefinite nouns
E.g: Do whatever you like.
-adjectives modify subject (whatever + Noun)
E.g: Whatever decision he made, I would support him.
-use as words to ask
E.g: Whatever do you mean?
•Anyway is adverb, used to modify the clause, stands alone, often at the end of the sentence, (anyway NOT + Noun)
E.g: It's too late now, anyway.
The road got worse, BUT they kept going anyway.
The water was cold but I took a shower anyway.
:)