Let\'s say I have an array with many Strings Called \"birdBlue\", \"birdRed\" and some other animals like \"pig1\", \"pig2\"
\"birdBlue\"
\"birdRed\"
\"pig1\"
\"pig2\"
if(mas[i].indexOf("bird") == 0) //there is bird
You.can read about indexOf here: http://www.w3schools.com/jsref/jsref_indexof.asp