java,web study/5주차 (7월 29일~8월 4일)
배열 내용 출력
doublemetal
2013. 8. 2. 21:43
<!DOCTYPE html>
<html>
<head>
<meta charset="EUC-KR">
<title>Insert title here</title>
<script type="text/javascript">
var test = new Array(1, 2, 3);
delete test[1];
document.write("test배열의 0번째 요소 : " + test[0] + "<br/>");
document.write("test배열의 1번째 요소 : " + test[1] + "<br/>");
document.write("test배열의 2번째 요소 : " + test[2] + "<br/>");
document.write("test배열의 전체 요소 : " + test.join("/"));
</script>
</head>
<body>
</body>
</html>
test배열의 0번째 요소 : 1
test배열의 1번째 요소 : undefined
test배열의 2번째 요소 :
3
test배열의 전체 요소 : 1//3