In Bourne shell, you can do
Code:
for x in `foo bar grill` ; do
   echo $x
done
and in Tcl I can do:

Code:
foreach e in { foo bar grill} {
   put $e
}
but in JavaScript, I end up doing:

Code:
var l = [ 'foo', 'bar', 'grill' ];
for (var i in l) {
   var x = l[i];
   ... do something with x...
}
Is there an idiom for looping over a fixed list of things in JavaScript that doesn't require creating a var before the loop?