As nouns the difference between years and yes
is that
years is plural of lang=en while
yes is an affirmative expression; an answer that shows agreement or acceptance.
As a particle yes is
a word used to show agreement or acceptance.
As an interjection yes is
used to express pleasure, joy, or great excitement.
As a verb yes is
to agree with, to affirm, to approve.