"Yes" is used to affirm or agree, which is a function of an adverb.
It modifies the entire sentence, indicating confirmation.
Get instant updates and alerts directly from our site.
Install this app on your device for quick access right from your home screen.