Mapped Array to Change Tag Colors

I need some help putting together some Javascript in order to change my colors for my tags, I want each Yes = green, No = red, Yes but do not renew = yellow. I do not know how to create this code myself and desperately need help.