It’s an interjection, which is a term used to express an emotion or indicate how you feel about something, typically outside of a sentence. Yuck is primarily used to indicate that you think a food is particularly disgusting or unappetizing. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.