Исходный код этого примера:
<script language="JavaScript">
<!--
var a = new Date();
var b = new Boolean(true);
var obj = new Object();
obj["year"] = a.getYear();
obj["month"] = a.getMonth()+1;
obj["date"] = a.getDate();
obj["logic"] = b;
var s = "";
for (var i in obj) s += i + " = " + obj[i] + "\n";
alert (s);
//-->
</script>