JSFiddle - React, Tailwind, and code Playground
by ChrisStanyon
HTML
<div id="response"></div>
JavaScript
var myColors = new Array();
myColors[0] = "blue";
myColors[1] = "green";
myColors[2] = "red";
myColors[3] = "purple";
myColors[4] = "yellow";
myColors[5] = "orange";
myColors[6] = "aqua";
$.each(myColors, function(i, color) {
console.log(color);
});
alert($.inArray('yellow',myColors));