var array = ["foo", "bar"]; for (var i in array) { print i; }