생활코딩 - JavaScript 수업 - 사용자 정의 객체 - example2.html
http://opentutorials.org/course/49/2912
by egoing
JavaScript
// 객체를 사용한 코딩 스타일
var person = new Object();
person.age = 30;
person.job = '프로그래머';
person.introduce = function() {
alert('저는 ' + this.age + '세의 ' + this.job + '입니다');
}
person.work = function() {
alert('coding');
}
alert(person.age);
person.introduce();