2007-01-27 for 〜 in JavaScript var animals = Array("dog", "cat", "elephant"); // 配列 for (x in animals) { document.write(x, "<br>"); }