There are a couple points of interest here. The way "nyet" is used in the example, it is a noun. But ordinarily, according to my dictionary, it is an adverb. And English "no" is an adverb, which I did not kinow before.