for ~ in

2007年1月27日
1 分
var animals = Array("dog", "cat", "elephant");      // 配列

for (x in animals) {
    document.write(x, "<br>");
}