var house = new Object(floors: "4", color:"red", windows:"lots", bathrooms:"3");
var result ="";
for (var i in house)
{
result +="house." + i + " is " + house.i + ".<br />";
}
document.body.innerHTML += result;
出力したいhouse.floors is 4.<br />house.color is red.<br />
などです。なぜこのjavascriptオブジェクトコードは機能しませんか?