제목 : 예제. 자바스크립트내장객체(Array객체+Date객체;요일표시)
<SCRIPT LANGUAGE="JavaScript">
function hangul(a)
{
week = new Array(7);
week[0] = "일";
week[1] = "월";
week[2] = "화";
week[3] = "수";
week[4] = "목";
week[5] = "금";
week[6] = "토";
return week[a];
}
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
sigan = new Date();
document.write(hangul(sigan.getDay()) + "요일");//요일0에서 6요일
</SCRIPT>