var color = ["Blue ", "Green", "Red", "Orange", "Violet", "Indigo", "Yellow ","Red"];
var item = ["th","st","nd","rd"];
console.log('1'+item[1]+' Choice is '+color[0]);
console.log('2'+item[2]+' Choice is '+color[1]);
console.log('3'+item[3]+' Choice is '+color[2]);
for(var i = 3 ; i<color.length ; i++)
{
console.log(i+1 +'th Choice is '+color[i]);
}
To embed this program on your website, copy the following code and paste it into your website's HTML: