noun-modifying (irregular), adverb
how ...!; what ...!
Expresses strong emotion or surprise about a quality or degree. Used prenominally or adverbially.
なんて美しい景色なんだろう。
What a beautiful view!
なんて速く走るんだ。
How fast he runs!
interjection
Interjection expressing surprise or asking for clarification, often in casual speech.
なんて?もう一度言って。
What? Say that again.