document.write("
<script> var firstArray = ["red", "green", "blue", "yellow"]; $.each(firstArray, function(key, value){ }); </script>