Describe JavaScript/2011년스터디/박정근 here
==11일==
==11일==
<HTML> <HEAD> <TITLE>JAVASCRIPT EX - 1/11</TITLE> <SCRIPT LANGUAGE ="JavaScript"> function addition(x, y){ s=x+" -> "+y document.write("Infor : "+s,"<br>") } </SCRIPT> </HEAD> <BODY> <SCRIPT LANGUAGE="JavaScript"> <!-- person=new Object(); person.name='박정근' person.phone='01036395856' person.ID='20101526' arr=new Array(); for (var i in person) { addition(i,person[i]); arr[i]=person[i]; } document.write("<br><br>"); for (var i in person) { document.write("arr[" + i + "] = " + arr[i] + " <br> length : " + arr[i].length,"<br>"); } try{ throw person.ID.length; } catch(e){ if (e==8) { alert("학부생입니다"); } else{ alert("학부생이 아닙니다") } } --> </SCRIPT> </BODY> </HTML>