My Code:
<script type="text/javascript">
for each ( var movie in ['Endhiran The Robot','Shivaji The Boss','Anbulla Rajinikanth'] )
    document.writeln(movies + "<br/>");
</script>
In Firefox, I am getting the output as
Endhiran The Robot
Shivaji The Boss
Anbulla Rajinikanth
But in IE9 and Chrome Version 23.0.1271.95 m, for each is not working and nothing is written on the document
 
     
     
    