객체 배열안에 메소드를 넣을 수 있다.
<script type="text/javascript">
var person = { // object01과 동일한 key value인데 보기 좋게 만듬
name : "홍길동",
birthday : "030219",
pId : "1234567",
fullId : function(){
return this.birthday + this.pId;
}
};
document.write("person.name-->"+person.name+"<p>");
document.write("person.fullId()-->"+person.fullId()+"<p>");
</script>